https://github.com/Kitware/CMake
Raw File
Tip revision: 0b3781e4c497566acaa504d4106d11c02a642501 authored by Brad King on 16 January 2014, 14:31:28 UTC
CMake 2.8.12.2
Tip revision: 0b3781e
check_mark.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()
back to top