CMake/Tests/RunCMake/CompilerChange/SecondCompiler.cmake

4 lines
182 B
CMake
Raw Permalink Normal View History

enable_language(C)
message(STATUS "CMAKE_C_COMPILER is \"${CMAKE_C_COMPILER}\"")
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/cc.cmake" "set(CMAKE_C_COMPILER \"${CMAKE_C_COMPILER}\")\n")