https://github.com/Kitware/CMake
Raw File
Tip revision: 21e60da5bb0715e09f2feba5930ea2c8bc8180af authored by Brad King on 21 January 2020, 15:17:47 UTC
CMake 3.16.3
Tip revision: 21e60da
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