CMAKE_*_OUTPUT_DIRECTORY existence is not evaluated by cmake_check_build_system target
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
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.
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)
Edited by Brad King