summaryrefslogtreecommitdiff
path: root/Tests/CustomCommand/check_mark.cmake
blob: 8b0551f83a546e94fb597fb11eb4496178ea9bd4 (plain)
1
2
3
4
5
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}")