summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/CompilerChange/FindCompiler.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/CompilerChange/FindCompiler.cmake')
-rw-r--r--Tests/RunCMake/CompilerChange/FindCompiler.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/RunCMake/CompilerChange/FindCompiler.cmake b/Tests/RunCMake/CompilerChange/FindCompiler.cmake
new file mode 100644
index 000000000..297ab2fa5
--- /dev/null
+++ b/Tests/RunCMake/CompilerChange/FindCompiler.cmake
@@ -0,0 +1,2 @@
+enable_language(C)
+file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/cc.cmake" "set(CMAKE_C_COMPILER \"${CMAKE_C_COMPILER}\")\n")