mirror of
https://github.com/reactos/CMake.git
synced 2025-01-02 00:39:17 +00:00
e83e6a1c8c
Add RunCMake.CompilerChange test to cover use of -DCMAKE_C_COMPILER=cc to change the compiler of an existing build tree. Also test for proper failure with -DCMAKE_C_COMPILER="" and no CC in the environment.
4 lines
182 B
CMake
4 lines
182 B
CMake
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")
|