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.
The
cache.cmake
andScriptConfig.cmake
files in theBUILD_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 runcmake -E copy_if_different
is not being executed when the output file already exists.