Imported Upstream version 3.25.0
[platform/upstream/cmake.git] / Tests / RunCMake / CommandLine / debug-trycompile.cmake
1 enable_language(C)
2
3 # Look for a source tree left by enable_language internal checks.
4 set(scratch ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/CMakeScratch)
5 file(GLOB_RECURSE remnants ${scratch}/TryCompile-*/CMakeLists.txt)
6 if(NOT remnants)
7   message(FATAL_ERROR "--debug-trycompile should leave the source behind")
8 endif()