Replies: 1 comment 2 replies
-
Raising this one from the dead a bit but I've run up against the same problem in a different situation. I tried turning on Interestingly Ninja correctly marks the vcpkg include as external and disables warnings. However, when running the code analysis it executes:
My CMake Preset vendor map:
Using Visual Studio 17.6.5 and latest vcpkg |
Beta Was this translation helpful? Give feedback.
-
I'm using Visual Studio 2022 with vcpkg. I've run the
vcpkg integrate install
command to use libraries inside VS2022 without using CMake (nothing against CMake, but some of the packages I'm using have less than stellar support for it, and I'd rather they "just work" for these side projects).I'm running into an issue with code analysis where it gives me hundreds of warnings from external library headers.
For example, the
libnoise
package has 269 warnings.I've followed the steps in this C++ Team Blog post to disable code analysis in external headers, but it seems that vcpkg headers aren't recognized as external headers, because it isn't working. I've also tried adding them manually to my "External Include Directory" options under my project's Properties, but that hasn't done it either.
I'm guessing vcpkg appends its include directories at the end of the regular include directories list?
Is there any way to disable code analysis for external headers added by vcpkg when using
integrate install
? Or do I have to use CMake and configure it manually through that?Here are some screenshots.
Here's what my External Include Directories look like:
Here are my External Includes settings:
But I still get warnings:
Beta Was this translation helpful? Give feedback.
All reactions