View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015695CMakeCMakepublic2015-08-13 11:482016-06-10 14:31
Reporterbugreporter 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0015695: CMAKE_*_OUTPUT_DIRECTORY existence is not evaluated by cmake_check_build_system target
DescriptionIf 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 Reproduceproject(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)
TagsNo tags attached.
Attached Filesgz file icon cmakeexamplebugreport.tar.gz [^] (434 bytes) 2015-08-14 06:15

 Relationships

  Notes
(0039282)
bugreporter (reporter)
2015-08-14 06:17
edited on: 2015-08-17 10:06

Attached example project which can be used to reproduce it by doing following steps:
$ cmake .
$ make
$ rm -r lib
$ make

Any more information required from my side? Any acknowledgement of this bug?

(0042822)
Kitware Robot (administrator)
2016-06-10 14:29

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2015-08-13 11:48 bugreporter New Issue
2015-08-14 06:15 bugreporter File Added: cmakeexamplebugreport.tar.gz
2015-08-14 06:17 bugreporter Note Added: 0039282
2015-08-17 10:06 bugreporter Note Edited: 0039282
2015-08-27 07:24 bugreporter Note Added: 0039334
2015-08-27 08:54 Brad King View Status private => public
2015-08-27 11:49 bugreporter Note Deleted: 0039334
2016-06-10 14:29 Kitware Robot Note Added: 0042822
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team