cmake/Tests/CustomCommand/check_mark.cmake
2013-03-16 19:13:01 +02:00

6 lines
173 B
CMake

if(EXISTS "${MARK_FILE}")
message(FATAL_ERROR "Custom command run more than once!")
else()
file(WRITE "${MARK_FILE}" "check for running custom command twice\n")
endif()