cmake/Tests/RunCMake/CommandLine/debug-trycompile.cmake

9 lines
318 B
CMake
Raw Normal View History

2015-08-17 11:37:30 +02:00
enable_language(C)
2022-11-16 20:14:03 +01:00
2015-08-17 11:37:30 +02:00
# Look for a source tree left by enable_language internal checks.
2022-11-16 20:14:03 +01:00
set(scratch ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/CMakeScratch)
file(GLOB_RECURSE remnants ${scratch}/TryCompile-*/CMakeLists.txt)
if(NOT remnants)
2015-08-17 11:37:30 +02:00
message(FATAL_ERROR "--debug-trycompile should leave the source behind")
endif()