How to disable automatic system includes being appended? #3071
Unanswered
olliepop777
asked this question in
Q&A
Replies: 1 comment
-
@olliepop777 I think that this likely has to do with the selected kit that you are using. Additionally, you can use the "unspecified" kit, which doesn't use any of the cmake-kits.json and allows you to have full control over your kits setup. Alternatively, you could integrate CMakePresets.json. |
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
-
It seems when I use the CMake Tools Extension it is automatically adding some system includes when I build. Is there any way to stop that behavior? When I build, I get stuff like this added in my output, leading to an error:
I don't know why it's looking for that file in the wrong place/that doesn't exist. But I know that when I build outside of VSCode and CMake Tools, then I don't get these includes and errors. If I go in the
cmake-kits.json
and delete all thecompilers
settings completely, then these errors go away. I guess I am wondering if this is the right way to stop it from including those system includes (it doesn't seem right to me) and why thecompilers
setting is causing this to happen in the first place? It was just set by default like so:Beta Was this translation helpful? Give feedback.
All reactions