Marking headers as SYSTEM does not suppress warnings on Windows.

Ignoring warnings from system headers is only supported with MSVC with the Ninja generators as of CMake 3.22 and the Visual Studio generators as of CMake 3.24. Of course, an MSVC of at least (compiler) version 19.29.30036.3 is required (the 14.29 toolchain in the Visual Studio installer).

3 Likes