[cmake-developers] [CMake 0015695]: CMAKE_*_OUTPUT_DIRECTORY existence is not evaluated by cmake_check_build_system target
Mantis Bug Tracker
mantis at public.kitware.com
Thu Aug 13 11:48:29 EDT 2015
The following issue has been SUBMITTED.
======================================================================
https://public.kitware.com/Bug/view.php?id=15695
======================================================================
Reported By: bugreporter
Assigned To:
======================================================================
Project: CMake
Issue ID: 15695
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-08-13 11:48 EDT
Last Modified: 2015-08-13 11:48 EDT
======================================================================
Summary: CMAKE_*_OUTPUT_DIRECTORY existence is not evaluated
by cmake_check_build_system target
Description:
If you are specifying certain CMAKE_*_OUTPUT_DIRECTORY variables they are
properly created when CMake generation is done, but in case you are removing the
specified directories after a successful run they are not recreated until you
re-run CMake.
It would be good to track this paths for evaluation within the
cmake_check_build_system target, so that the re-run of CMake is automatically
done in case the folders are not existing.
Steps to Reproduce:
project(Example)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/libstatic)
add_executable(TestExecutable test1.cpp)
add_library(TestLibrary SHARED test2.cpp)
add_library(TestLibrary2 STATIC test3.cpp)
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-08-13 11:48 bugreporter New Issue
======================================================================
More information about the cmake-developers
mailing list