Commit a6fd17ce authored by Brad King's avatar Brad King

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".
parent c49083e9
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment