diff options
author | Stephen Kelly <steveire@gmail.com> | 2011-08-17 11:32:48 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2011-08-17 11:32:48 (GMT) |
commit | aa4f0b6ba813c69e73d66c51ece183e8e97f622b (patch) | |
tree | a559651b2e39111eea472646e7929a77d536387c /Tests | |
parent | a493d1a35305d26e9c360f82b969adde1dfd64ae (diff) | |
download | CMake-aa4f0b6ba813c69e73d66c51ece183e8e97f622b.zip CMake-aa4f0b6ba813c69e73d66c51ece183e8e97f622b.tar.gz CMake-aa4f0b6ba813c69e73d66c51ece183e8e97f622b.tar.bz2 |
Fix the version extraction regex for clang.
Diffstat (limited to 'Tests')
-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 fcffa87..7d52912 100644 --- a/Tests/Module/CheckCXXCompilerFlag/CMakeLists.txt +++ b/Tests/Module/CheckCXXCompilerFlag/CMakeLists.txt @@ -25,7 +25,7 @@ endif() 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}") + string (REGEX REPLACE ".*version ([0-9]\\.[0-9]).*" "\\1" _clang_version "${_clang_version_info}") endif() message("Platform:\n WIN32: ${WIN32}\n UNIX: ${UNIX}\n APPLE: ${APPLE}\n MINGW: ${MINGW}\n CYGWIN: ${CYGWIN}\n" |