summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeOnly/CompilerIdCXX
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-08-21 17:30:50 (GMT)
committerBrad King <brad.king@kitware.com>2012-08-22 20:35:54 (GMT)
commit8be51f6694184fb9044389fb1e18ad1765f6476c (patch)
treef61c0eb17447a82f757616e97e2bd2d41fb6765b /Tests/CMakeOnly/CompilerIdCXX
parentec22a9b5217c2110db9af1791a61a7552144f028 (diff)
downloadCMake-8be51f6694184fb9044389fb1e18ad1765f6476c.zip
CMake-8be51f6694184fb9044389fb1e18ad1765f6476c.tar.gz
CMake-8be51f6694184fb9044389fb1e18ad1765f6476c.tar.bz2
Test variables CMAKE_(C|CXX|Fortran)_COMPILER(|_ID|_VERSION)
Add tests CMakeOnly.CompilerId(C|CXX|Fortran) to check that the basic compiler tool path, vendor, and version variables have been set as expected.
Diffstat (limited to 'Tests/CMakeOnly/CompilerIdCXX')
-rw-r--r--Tests/CMakeOnly/CompilerIdCXX/CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/Tests/CMakeOnly/CompilerIdCXX/CMakeLists.txt b/Tests/CMakeOnly/CompilerIdCXX/CMakeLists.txt
new file mode 100644
index 0000000..94ac31e
--- /dev/null
+++ b/Tests/CMakeOnly/CompilerIdCXX/CMakeLists.txt
@@ -0,0 +1,14 @@
+cmake_minimum_required(VERSION 2.8.9)
+project(CompilerIdCXX CXX)
+
+foreach(v
+ CMAKE_CXX_COMPILER
+ CMAKE_CXX_COMPILER_ID
+ CMAKE_CXX_COMPILER_VERSION
+ )
+ if(${v})
+ message(STATUS "${v}=[${${v}}]")
+ else()
+ message(SEND_ERROR "${v} not set!")
+ endif()
+endforeach()