clang-cl: Marking include directories as SYSTEM is ignored.
Using clang-cl, CMAKE_INCLUDE_SYSTEM_FLAG_CXX
is empty. Thus, when for example adding a header only library and specifying the include path using target_include_directories(mylib SYSTEM INTERFACE include)
, the warnings (if any) from headers inside include
are shown, which is exactly what SYSTEM
should suppress.