Clang crosscompilation fails to mark include directories as system
Hi,
With this toolchain I create project. I marked few SDK/system include directories with include_directories(SYSTEM /var/win10_sdk/).
Yet, I see that those includes are added as normal include paths. It's problematic as those include's triggers lots of warnings.
I checked flags.make for some targets in CMakeFiles dir and inside I find -I/var/win10_sdk/include -I/var/win10_sdk/include/um -I/var/win10_sdk/include/ucrt where I expect -isystem/var/win10_sdk/include -isystem/var/win10_sdk/include/um -isystem/var/win10_sdk/include/ucrt.
Where's the problem? What is set incorrectly?
CMake 3.16.3, Debian Bullseye, Clang 10