diff options
author | Stephen Kelly <steveire@gmail.com> | 2011-08-17 11:32:20 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2011-08-17 11:32:20 (GMT) |
commit | a493d1a35305d26e9c360f82b969adde1dfd64ae (patch) | |
tree | 56e1f59cf6613864b2743142328eb302d70a6b8d /Tests/Module | |
parent | b6ee2ee03addc4b22dfba6aeae27719c139e0727 (diff) | |
download | CMake-a493d1a35305d26e9c360f82b969adde1dfd64ae.zip CMake-a493d1a35305d26e9c360f82b969adde1dfd64ae.tar.gz CMake-a493d1a35305d26e9c360f82b969adde1dfd64ae.tar.bz2 |
Test the correct cxx variable.
Diffstat (limited to 'Tests/Module')
-rw-r--r-- | Tests/Module/CheckCXXCompilerFlag/CMakeLists.txt | 2 |
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() |