Clion is failing to find headers even though Cmake found them
已回答
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!
请先登录再写评论。
Hello!
Please check what run/debug configuration is selected in the drop-down on the toolbar:
It must be
VidPlayer
, notmain.c
.