diff options
Diffstat (limited to 'cmake/EigenTesting.cmake')
-rw-r--r-- | cmake/EigenTesting.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/EigenTesting.cmake b/cmake/EigenTesting.cmake index 9f35f5466..446375b1c 100644 --- a/cmake/EigenTesting.cmake +++ b/cmake/EigenTesting.cmake @@ -316,7 +316,7 @@ macro(ei_get_compilerver VAR) string( REGEX REPLACE ".* ([0-9])\\.([0-9])\\.([0-9]).*" "\\1.\\2.\\3" eigen_cxx_compiler_version ${eigen_cxx_compiler_version_raw}) elseif(eigen_cxx_compiler_name MATCHES "icpc|clang") - string( REGEX REPLACE ".* ([0-9]*)\\.([0-9]*) .*" "\\1.\\2" + string( REGEX REPLACE ".* ([0-9]+\\.[0-9]+\\.[0-9]+|[0-9]+\\.[0-9]+).*" "\\1" eigen_cxx_compiler_version ${eigen_cxx_compiler_version_raw}) else() set(eigen_cxx_compiler_version "_") |