cmake/Tests/RunCMake/BuildDepends/RepeatCMake-Custom-Script.cmake

5 lines
196 B
CMake
Raw Normal View History

2021-09-14 00:13:48 +02:00
if(EXISTS "${CMAKE_CURRENT_BINARY_DIR}/exists-for-build2")
message(FATAL_ERROR "Custom command incorrectly re-ran after CMake re-ran!")
endif()
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/out.txt")