importproject: fix reading of msvc std option
Might need more tests. The fix is a bit hacky but I thought I'd make as small of a change as possible.
Will take a look later. That also lacks support for c++latest and clatest: https://learn.microsoft.com/en-us/cpp/build/reference/std-specify-language-standard-version?view=msvc-170.
The note about __cplusplus is also interesting. And it also has _MSVC_LANG as equivalent. Stupid quirks...
The note about
__cplusplusis also interesting. And it also has_MSVC_LANGas equivalent. Stupid quirks...
The __cplusplus thing is quirky indeed... atleast with this change the correct substring is extracted from the command.
I will take a look after I finished up #6742 but that still requires some work as it exposes additional issues. So give it a day or two (or a week or two depending on how the reviews progress if they intersect).