CMake/Tests/RunCMake/CompilerChange/FindCompiler.cmake

3 lines
120 B
CMake

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