summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-10-09 17:50:59 (GMT)
committerBrad King <brad.king@kitware.com>2013-10-16 14:37:48 (GMT)
commita6fd17ce50b18dd9d06cdd7fdb34bf68e987f7fc (patch)
tree4de057a81d8a1dd3a412874d2ada46312ad32a13
parentc49083e9a4cddbdc6cbcc582e2d8d5fc7cfd7740 (diff)
downloadCMake-a6fd17ce50b18dd9d06cdd7fdb34bf68e987f7fc.zip
CMake-a6fd17ce50b18dd9d06cdd7fdb34bf68e987f7fc.tar.gz
CMake-a6fd17ce50b18dd9d06cdd7fdb34bf68e987f7fc.tar.bz2
VS: Fix CMAKE_<LANG>_COMPILER detection with Intel toolset (#14471)
When the platform toolset is from Intel, look for "icl.exe" instead of "cl.exe".
-rw-r--r--Modules/CMakeDetermineCompilerId.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake
index de4a882..71f15df 100644
--- a/Modules/CMakeDetermineCompilerId.cmake
+++ b/Modules/CMakeDetermineCompilerId.cmake
@@ -130,6 +130,9 @@ Id flags: ${testflags}
endif()
if(CMAKE_VS_PLATFORM_TOOLSET)
set(id_toolset "<PlatformToolset>${CMAKE_VS_PLATFORM_TOOLSET}</PlatformToolset>")
+ if(CMAKE_VS_PLATFORM_TOOLSET MATCHES "Intel")
+ set(id_cl icl.exe)
+ endif()
else()
set(id_toolset "")
endif()