RerunCMake.cmake 333 B

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