mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-18 14:34:17 +08:00
fix detection of ICC version
This commit is contained in:
parent
80f8ed9f9c
commit
a0da96e2f4
@ -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 "_")
|
||||
|
Loading…
Reference in New Issue
Block a user