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".
This commit is contained in:
Brad King 2013-10-09 13:50:59 -04:00
parent c49083e9a4
commit a6fd17ce50
1 changed files with 3 additions and 0 deletions

View File

@ -130,6 +130,9 @@ Id flags: ${testflags}
endif() endif()
if(CMAKE_VS_PLATFORM_TOOLSET) if(CMAKE_VS_PLATFORM_TOOLSET)
set(id_toolset "<PlatformToolset>${CMAKE_VS_PLATFORM_TOOLSET}</PlatformToolset>") set(id_toolset "<PlatformToolset>${CMAKE_VS_PLATFORM_TOOLSET}</PlatformToolset>")
if(CMAKE_VS_PLATFORM_TOOLSET MATCHES "Intel")
set(id_cl icl.exe)
endif()
else() else()
set(id_toolset "") set(id_toolset "")
endif() endif()