diff options
author | Brad King <brad.king@kitware.com> | 2013-10-09 17:50:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-10-16 14:37:48 (GMT) |
commit | a6fd17ce50b18dd9d06cdd7fdb34bf68e987f7fc (patch) | |
tree | 4de057a81d8a1dd3a412874d2ada46312ad32a13 | |
parent | c49083e9a4cddbdc6cbcc582e2d8d5fc7cfd7740 (diff) | |
download | CMake-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.cmake | 3 |
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() |