summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2011-08-17 11:32:20 (GMT)
committerStephen Kelly <steveire@gmail.com>2011-08-17 11:32:20 (GMT)
commita493d1a35305d26e9c360f82b969adde1dfd64ae (patch)
tree56e1f59cf6613864b2743142328eb302d70a6b8d
parentb6ee2ee03addc4b22dfba6aeae27719c139e0727 (diff)
downloadCMake-a493d1a35305d26e9c360f82b969adde1dfd64ae.zip
CMake-a493d1a35305d26e9c360f82b969adde1dfd64ae.tar.gz
CMake-a493d1a35305d26e9c360f82b969adde1dfd64ae.tar.bz2
Test the correct cxx variable.
-rw-r--r--Tests/Module/CheckCXXCompilerFlag/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/Module/CheckCXXCompilerFlag/CMakeLists.txt b/Tests/Module/CheckCXXCompilerFlag/CMakeLists.txt
index 8294c8f..fcffa87 100644
--- a/Tests/Module/CheckCXXCompilerFlag/CMakeLists.txt
+++ b/Tests/Module/CheckCXXCompilerFlag/CMakeLists.txt
@@ -23,7 +23,7 @@ if(CMAKE_COMPILER_IS_GNUCXX)
endif()
endif()
-if(CMAKE_COMPILER_ID MATCHES Clang)
+if(CMAKE_CXX_COMPILER_ID MATCHES Clang)
exec_program(${CMAKE_CXX_COMPILER} ARGS --version OUTPUT_VARIABLE _clang_version_info)
string (REGEX MATCH "version [345]\\.[0-9]" _clang_version "${_clang_version_info}")
endif()