CMake/Tests/RunCMake/CompilerNotFound/NoCompilerC-IDE.cmake

4 lines
141 B
CMake

set(CMAKE_C_COMPILER_ID_ERROR_FOR_TEST "#error NoCompilerC-IDE")
enable_language(C)
message(FATAL_ERROR "This error should not be reached.")