Skip to content

VS: Work around Intel Compiler 2019 bug in VS 2019 integration

Brad King requested to merge brad.king/cmake:vs-intel-2019 into master

When VS 2019 sees a project with an empty LanguageStandard setting it replaces that empty string with the value Default (this was not done in VS 2017 or earlier). The Intel Compiler 2019 Visual Studio Integration does not recognize the value and gives the error:

...\PlatformToolsets\Intel C++ Compiler 19.0\Toolset.targets(350,5):
error : Element <LanguageStandard> has an invalid value of "Default".

Parse the icl.xml file that comes with the Intel VS integration to detect when this problem is present (so that we hopefully avoid this when Intel fixes the problem). Work around this by replacing an empty LanguageStandard value with a value that the Intel integration recognizes. Issue a warning when doing so may change the build semantics or cause warnings.

Issue: #19691 (closed)

Merge request reports