summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/configure_file/RerunCMake.cmake
blob: 890cc1fa8a276f88884a55fb9999045e86d2919b (plain)
1
2
3
4
5
6
7
8
message("Running CMake on RerunCMake") # write to stderr if cmake reruns
configure_file(
  "${CMAKE_CURRENT_BINARY_DIR}/ConfigureFileInput.txt.in"
  "${CMAKE_CURRENT_BINARY_DIR}/ConfigureFileOutput.txt"
  @ONLY
  )
# make sure CMakeCache.txt is newer than ConfigureFileOutput.txt
execute_process(COMMAND ${CMAKE_COMMAND} -E sleep 1)