summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/CommandLine/debug-trycompile.cmake
blob: 9619ba8f112fa1c47879537e75effdc98d66d155 (plain)
1
2
3
4
5
6
7
8
enable_language(C)

# Look for a source tree left by enable_language internal checks.
set(scratch ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/CMakeScratch)
file(GLOB_RECURSE remnants ${scratch}/TryCompile-*/CMakeLists.txt)
if(NOT remnants)
  message(FATAL_ERROR "--debug-trycompile should leave the source behind")
endif()