RepeatCMake-Custom-Script.cmake 196 B

1234
  1. if(EXISTS "${CMAKE_CURRENT_BINARY_DIR}/exists-for-build2")
  2. message(FATAL_ERROR "Custom command incorrectly re-ran after CMake re-ran!")
  3. endif()
  4. file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/out.txt")