cmake-basis/BASIS

Script cache.cmake and ScriptConfig.cmake files not updated

schuhschuh opened this issue · 0 comments

Issue by schuhschuh
Wednesday Mar 23, 2016 at 18:23 GMT
Originally opened as cmake-basis/legacy#560


The cache.cmake and ScriptConfig.cmake files in the BUILD_DIR of script targets (i.e., ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/${TARGET_UID}.dir/ are not updated when the corresponding .in file has changed after another CMake configure run with possibly modified settings. This is because the custom command which should run cmake -E copy_if_different is not being executed when the output file already exists.