Test the correct cxx variable.

This commit is contained in:
Stephen Kelly 2011-08-17 13:32:20 +02:00
parent b6ee2ee03a
commit a493d1a353
1 changed files with 1 additions and 1 deletions

View File

@ -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()