summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/CompilerChange/FirstCompiler.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/CompilerChange/FirstCompiler.cmake')
-rw-r--r--Tests/RunCMake/CompilerChange/FirstCompiler.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/CompilerChange/FirstCompiler.cmake b/Tests/RunCMake/CompilerChange/FirstCompiler.cmake
new file mode 100644
index 000000000..c87ec4952
--- /dev/null
+++ b/Tests/RunCMake/CompilerChange/FirstCompiler.cmake
@@ -0,0 +1,3 @@
+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")