fix detection of ICC version

This commit is contained in:
Gael Guennebaud 2011-12-06 22:07:20 +01:00
parent 80f8ed9f9c
commit a0da96e2f4

View File

@ -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 "_")