Replies: 1 comment
-
|
FTR |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using vcpkg to manage dependencies for my project. Due to project requirements, I enabled /W4 and /WX to treat all warnings as errors. However, this causes warnings from third-party headers installed by vcpkg to also be treated as errors, which breaks the build.
I attempted to exclude these include directories by marking them as system headers using target_include_directories(... SYSTEM ...), but this does not work. It seems that vcpkg’s include paths are added before my own CMake commands, so my SYSTEM specification is not applied to them.
Is there a recommended way to mark all vcpkg-installed include directories as SYSTEM (or otherwise suppress warnings from vcpkg headers) so that they are not affected by /WX?
Any guidance or an official solution would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions