summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2011-08-18 11:29:06 (GMT)
committerStephen Kelly <steveire@gmail.com>2011-08-18 11:29:06 (GMT)
commit42154ec01cc6250097880c6c13ea5bba88e3a6b0 (patch)
tree19139c49fdb248f777746542b8b8637b9b6e98ca /Tests
parenta147a069a533e24d749412f471aaac911cfdb573 (diff)
downloadCMake-42154ec01cc6250097880c6c13ea5bba88e3a6b0.zip
CMake-42154ec01cc6250097880c6c13ea5bba88e3a6b0.tar.gz
CMake-42154ec01cc6250097880c6c13ea5bba88e3a6b0.tar.bz2
Fix up the regex command for Intel.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/Module/CheckCXXCompilerFlag/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/Module/CheckCXXCompilerFlag/CMakeLists.txt b/Tests/Module/CheckCXXCompilerFlag/CMakeLists.txt
index fa48a48..77f5006 100644
--- a/Tests/Module/CheckCXXCompilerFlag/CMakeLists.txt
+++ b/Tests/Module/CheckCXXCompilerFlag/CMakeLists.txt
@@ -33,7 +33,7 @@ endif()
if(CMAKE_CXX_COMPILER_ID MATCHES Intel)
exec_program(${CMAKE_CXX_COMPILER} ARGS -V OUTPUT_VARIABLE _intel_version_info)
- string (REGEX REPLACE ".*Version ([0-9]+(\\.[0-9]+)+).*" _intel_version "${_intel_version_info}")
+ string (REGEX REPLACE ".*Version ([0-9]+(\\.[0-9]+)+).*" "\\1" _intel_version "${_intel_version_info}")
endif()
message("Platform:\n WIN32: ${WIN32}\n UNIX: ${UNIX}\n APPLE: ${APPLE}\n MINGW: ${MINGW}\n CYGWIN: ${CYGWIN}\n"