RerunCMake.cmake 526 B

1234567891011
  1. set(input ${CMAKE_CURRENT_BINARY_DIR}/CustomCMakeInput.txt)
  2. set(stamp ${CMAKE_CURRENT_BINARY_DIR}/CustomCMakeStamp.txt)
  3. file(READ ${input} content)
  4. file(WRITE ${stamp} "${content}")
  5. set(depend ${CMAKE_CURRENT_BINARY_DIR}/CustomCMakeDepend.txt)
  6. set(output ${CMAKE_CURRENT_BINARY_DIR}/CustomCMakeOutput.txt)
  7. set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${depend})
  8. file(READ ${depend} content)
  9. file(WRITE ${output} "${content}")
  10. set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS RerunCMake.txt)