cmake include_directories(<path>) can't be resolve in clangd correctly
i use clangd extension in vscode. and i include some header-only 3party libraries in c++ project by include_directories(<path>
).
cmake generate compiler_commands.json withuot -I <path>
. so clangd can't resolve these paths. after i add "-I <path>
" in compiler_commands.json. clangd works.
so how to let cmake add "-I <paths>
" in compiler_commands.json automaticly?
Edited by Caleb_Du