Skip to content

VS: Fix detecting icx.exe with Intel Compiler toolsets newer than 2021

Update CMAKE_VS_PLATFORM_TOOLSET matching rules for Intel compilers.

The logic added by !5579 (merged) matches a specific toolset known to be the icx.exe compiler, and assumes all other Intel C++ compilers (that are not DPC++) must be icl.exe.

Since icx.exe is officially replacing icl.exe, use a regex that matches the now-fixed set of toolsets known to use icl.exe. Any other Intel C++ compiler will be assumed to be icx.exe.

Backport: release
Topic-rename: vs-intel-oneapi-toolset

Edited by Brad King

Merge request reports