Clion is failing to find headers even though Cmake found them

Answered

I'm encountering an issue where CLion is not indexing certain header files included outside the Lib folder. When I hover over the #include statements referring to these files, CLion shows a "file not found in search paths" message, even though the paths are correctly set.

I've attached my CMakeLists.txt file for reference — all relevant include directories ( FFmpeg paths) are properly added there.

Interestingly, in the External Libraries tab, the headers from Homebrew and FFmpeg do appear, indicating that CLion is aware of them, but it still fails to index or resolve the includes correctly in the code editor.

Any guidance on how to resolve this would be appreciated!

 

2
1 comment

Hello!

Please check what run/debug configuration is selected in the drop-down on the toolbar:

It must be VidPlayer, not main.c

0

Please sign in to leave a comment.