https://github.com/Kitware/CMake
Raw File
Tip revision: 8c89b5e2dcab146557c6eac0c32e2ab813ae6428 authored by Bill Hoffman on 26 February 2010, 18:45:23 UTC
CMake 2.8.1
Tip revision: 8c89b5e
check_mark.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}")
back to top