You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use include_directories(src) with cmake so I can include absolute paths from the src/ directory for C++ files. It compiles fine, but clangd yells at me that it can't find absolute paths include files
structure:
src
├── Engine
│ ├── Renderer.cpp
│ ├── Renderer.h
├── Game
│ ├── Chunks.cpp
│ ├── Chunks.h
└── Main.cpp
I get 'Engine/Renderer.h' file not found from clangd when included this way:
#include "Engine/Renderer.h"
It works fine relatively:
#inlude "../Engine/Renderer.h"
Is this a problem with compdb or with how cmake exports compile_commands.json?
The text was updated successfully, but these errors were encountered:
I use include_directories(src) with cmake so I can include absolute paths from the src/ directory for C++ files. It compiles fine, but clangd yells at me that it can't find absolute paths include files
structure:
src
├── Engine
│ ├── Renderer.cpp
│ ├── Renderer.h
├── Game
│ ├── Chunks.cpp
│ ├── Chunks.h
└── Main.cpp
I get 'Engine/Renderer.h' file not found from clangd when included this way:
#include "Engine/Renderer.h"
It works fine relatively:
#inlude "../Engine/Renderer.h"
Is this a problem with compdb or with how cmake exports compile_commands.json?
The text was updated successfully, but these errors were encountered: