I'm developing embedded c/c++ applications using eclipse which uses CMake to build projects. I can set CMake to generate compile_commands.json, but it seems that it does not include all the necessary include paths and thus emacs lsp show "xxx/xxx.h" file not found.
So my question is:
How to add those missing paths into compile_commands.json to assist lsp-mode to index header files? Or is there any other mechanism to support lsp-mode to find extra include path?
I'm developing embedded c/c++ applications using eclipse which uses CMake to build projects. I can set CMake to generate compile_commands.json, but it seems that it does not include all the necessary include paths and thus emacs lsp show "xxx/xxx.h" file not found.
So my question is:
How to add those missing paths into compile_commands.json to assist lsp-mode to index header files? Or is there any other mechanism to support lsp-mode to find extra include path?