cmake-basis / legacy

Legacy CMake BASIS project for versions 3.2 and older. For newer versions, go to
https://github.com/cmake-basis/BASIS
Other
13 stars 11 forks source link

Script cache.cmake and ScriptConfig.cmake files not updated #560

Closed schuhschuh closed 8 years ago

schuhschuh commented 8 years ago

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.

schuhschuh commented 8 years ago

Fixed by schuhschuh/cmake-basis-modules@a36402b369b89ec8c1cdbbcd3e3cea26e0c6d225.