[CMake] Eclipse generator - scanner-discovered include pathsand pre-processor symbols

Alexander Neundorf a.neundorf-work at gmx.net
Sun Mar 20 12:33:25 EDT 2011


On Wednesday 16 March 2011, Chatterjee, Shash wrote:
> Hi Alex,
>
> In my case, I get little yellow icons with a question mark on the editor's
> left-hand gutter, with a "unresolved inclusion: <blah>".  This happens on
> every new import, but also if I make changes to any CMakeLists.txt file
> within the project and CMake regenerates the .cproject file.
>
> On my project, without the path container, I do not have (see attached
> screenshot) paths like:
>
> /usr/include/c++/4.5.1
> /usr/include/c++/4.5.1/i686-redhat-linux
> /usr/include/c++/4.5.1/backward
> /usr/local/include
> /usr/lib/gcc/i686-redhat-linux/4.5.1/include
> /usr/include
>
> I do not have these paths included explicitly with INCLUDE_DIRECTORIES()
> (and I do just that to temporarily workaround this).  I suspect that in
> your project these paths are explicitly defined somewhere, or, 

No, I don't.
I just tried again, and I don't get the little yellow icons for stuff like 
stdio.h.
Adding the line you propose doesn't change the behaviour here.

Can you send me such a .cproject file from your system where it doesn't work ?
Maybe for some reason the collecting of built-in include dirs and macros 
doesn't work on your system.

Alex


More information about the CMake mailing list