It seems that suddenly CLion's highlighting and autocompletion can't find any of my includes anymore (both library includes and my local includes). Standard include (<vector>, etc) are fine.
What's strange is that I'm pretty sure the includes were resolved correctly up to some point, but I can't figure out what's wrong. The project compiles perfectly fine using the same CMakeLists.txt both inside and outside of CLion, it's really just the intellisense which is broken.
It seems to have something to do with the project root: I am suggested to include "../../include/Mesh.h" even though the project directory is organized as follows:
My CMakeLists.txt contains (among other):
I have also included manually all the headers along the source files in my calls to add_library and add_executable, and they are white in the project sidebar (i.e. not grayed out).
What I've tried:
- Restarting several times
- Clearing caches and restarting
- Deleting the .idea files and re-importing the project
Would you have any idea of what could be wrong?
What's really confusing to me is that everything compiles, links and runs perfectly even inside of CLion.
Thanks a lot in advance for your help!