coolusername192168 · 2022-08-27 00:23
I always get "file not found" error when including files even though my project compiles fine. This is because my include files are seperated from the source files. Is there any package that allows emacs to work properly in a cmake project automatically?
SafeSweet715 · 2022-08-27 04:14
If you are using the ccls as language server, try below option when you execute cmake command
cmake … -DCMAKE_EXPORT_COMPILE_COMMANDS=YES
compile_commands.json file which solve the dependencies between ccls and include libraries is generated automatically.
[deleted] · 2022-08-27 04:17
[deleted]