mirror of
https://github.com/reactos/CMake.git
synced 2024-12-14 23:29:57 +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.
3 lines
120 B
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")
|