trycompile-clean.cmake 297 B

12345678
  1. enable_language(C)
  2. # Look for a source tree left by enable_language internal checks.
  3. set(scratch ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/CMakeScratch)
  4. file(GLOB_RECURSE remnants ${scratch}/TryCompile-*/*)
  5. if(remnants)
  6. message(FATAL_ERROR "try_compile should not leave artifacts behind")
  7. endif()