summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CompilerChange/cc.sh.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-02-18 15:35:53 (GMT)
committerBrad King <brad.king@kitware.com>2013-02-20 13:01:06 (GMT)
commite83e6a1c8c572548b2a8ce1e54f4fd0f60f32a70 (patch)
treea73ddfb7d5859958594e9f58cab8aa12c5d7a3bd /Tests/RunCMake/CompilerChange/cc.sh.in
parentc307e1c911dbbafb1673799212a4e5f4e211b9f8 (diff)
downloadCMake-e83e6a1c8c572548b2a8ce1e54f4fd0f60f32a70.zip
CMake-e83e6a1c8c572548b2a8ce1e54f4fd0f60f32a70.tar.gz
CMake-e83e6a1c8c572548b2a8ce1e54f4fd0f60f32a70.tar.bz2
Test Unix Makefiles generator support for changing compilers
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.
Diffstat (limited to 'Tests/RunCMake/CompilerChange/cc.sh.in')
-rwxr-xr-xTests/RunCMake/CompilerChange/cc.sh.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/RunCMake/CompilerChange/cc.sh.in b/Tests/RunCMake/CompilerChange/cc.sh.in
new file mode 100755
index 0000000..1d400e6
--- /dev/null
+++ b/Tests/RunCMake/CompilerChange/cc.sh.in
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec "@CMAKE_C_COMPILER@" "$@"