cmake/Tests/CustomCommand/check_mark.cmake
Pierre Habouzit 4c630dbbc0 import cmake 2.6.0
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-10-12 18:41:06 +02:00

6 lines
215 B
CMake

IF(EXISTS "${MARK_FILE}")
MESSAGE(FATAL_ERROR "Custom command run more than once!")
ELSE(EXISTS "${MARK_FILE}")
FILE(WRITE "${MARK_FILE}" "check for running custom command twice\n")
ENDIF(EXISTS "${MARK_FILE}")