diff options
Diffstat (limited to 'Tests/RunCMake/Configure/RerunCMake.cmake')
-rw-r--r-- | Tests/RunCMake/Configure/RerunCMake.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/RunCMake/Configure/RerunCMake.cmake b/Tests/RunCMake/Configure/RerunCMake.cmake new file mode 100644 index 0000000..5a561bf --- /dev/null +++ b/Tests/RunCMake/Configure/RerunCMake.cmake @@ -0,0 +1,11 @@ +set(input ${CMAKE_CURRENT_BINARY_DIR}/CustomCMakeInput.txt) +set(stamp ${CMAKE_CURRENT_BINARY_DIR}/CustomCMakeStamp.txt) +file(READ ${input} content) +file(WRITE ${stamp} "${content}") + +set(depend ${CMAKE_CURRENT_BINARY_DIR}/CustomCMakeDepend.txt) +set(output ${CMAKE_CURRENT_BINARY_DIR}/CustomCMakeOutput.txt) +set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${depend}) +file(READ ${depend} content) +file(WRITE ${output} "${content}") +set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS RerunCMake.txt) |