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

Chatterjee, Shash schatterjee at camber.com
Thu Mar 24 09:53:59 EDT 2011


BTW, the command I used for cmake was:

cd build/eclipsetest
cmake -G"Eclipse CDT4 - Unix Makefiles" -DECLIPSE_CDT4_GENERATE_SOURCE_PROJECT=TRUE -DCMAKE_BUILD_TYPE=Debug ../../eclipsetest


-----Original Message-----
From: Chatterjee, Shash
Sent: Thu 3/24/2011 8:47 AM
To: a.neundorf-work at gmx.net
Cc: cmake at cmake.org
Subject: RE: [CMake] Eclipse generator - scanner-discovered include pathsand pre-processor symbols
 
Hi Alex,

I have attached a tar file with a tiny example project that shows the behaviour.  Screenshot-1 shows the problem (this is the config included in the tar file), Screenshot-2 shows the state after I fixed it manually.

Thanks,
Shash


-----Original Message-----
From: Alexander Neundorf [mailto:a.neundorf-work at gmx.net]
Sent: Sun 3/20/2011 11:33 AM
To: Chatterjee, Shash
Cc: cmake at cmake.org
Subject: Re: [CMake] Eclipse generator - scanner-discovered include pathsand pre-processor symbols
 
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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110324/58c9ebb6/attachment.htm>


More information about the CMake mailing list