summaryrefslogtreecommitdiffstats
path: root/Tests/Module
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2011-08-17 11:37:57 (GMT)
committerStephen Kelly <steveire@gmail.com>2011-08-17 11:37:57 (GMT)
commitbf73e759413d33f7d2950ecb46530cffebfbd333 (patch)
tree99e54cf33f05b86f819915df0a1e4370aaf5854e /Tests/Module
parentaa4f0b6ba813c69e73d66c51ece183e8e97f622b (diff)
downloadCMake-bf73e759413d33f7d2950ecb46530cffebfbd333.zip
CMake-bf73e759413d33f7d2950ecb46530cffebfbd333.tar.gz
CMake-bf73e759413d33f7d2950ecb46530cffebfbd333.tar.bz2
Hopefully add version extraction for Intel.
Diffstat (limited to 'Tests/Module')
-rw-r--r--Tests/Module/CheckCXXCompilerFlag/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/Module/CheckCXXCompilerFlag/CMakeLists.txt b/Tests/Module/CheckCXXCompilerFlag/CMakeLists.txt
index 7d52912..0133f8e 100644
--- a/Tests/Module/CheckCXXCompilerFlag/CMakeLists.txt
+++ b/Tests/Module/CheckCXXCompilerFlag/CMakeLists.txt
@@ -28,10 +28,16 @@ if(CMAKE_CXX_COMPILER_ID MATCHES Clang)
string (REGEX REPLACE ".*version ([0-9]\\.[0-9]).*" "\\1" _clang_version "${_clang_version_info}")
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}")
+endif()
+
message("Platform:\n WIN32: ${WIN32}\n UNIX: ${UNIX}\n APPLE: ${APPLE}\n MINGW: ${MINGW}\n CYGWIN: ${CYGWIN}\n"
" MSVC: ${MSVC}\n MSVC60: ${MSVC60}\n MSVC70: ${MSVC70}\n MSVC71: ${MSVC71}\n MSVC80: ${MSVC80}\n MSVC90: ${MSVC90}\n MSVC10: ${MSVC10}\n"
" GCC: ${_gcc_version}\n"
" Clang: ${_clang_version}\n"
+ " Intel: ${_intel_version}\n"
)
include(CheckCXXCompilerFlag)