<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>RE: [CMake] Eclipse generator - scanner-discovered include pathsand pre-processor symbols</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>BTW, the command I used for cmake was:<BR>
<BR>
cd build/eclipsetest<BR>
cmake -G"Eclipse CDT4 - Unix Makefiles" -DECLIPSE_CDT4_GENERATE_SOURCE_PROJECT=TRUE -DCMAKE_BUILD_TYPE=Debug ../../eclipsetest<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Chatterjee, Shash<BR>
Sent: Thu 3/24/2011 8:47 AM<BR>
To: a.neundorf-work@gmx.net<BR>
Cc: cmake@cmake.org<BR>
Subject: RE: [CMake] Eclipse generator - scanner-discovered include pathsand pre-processor symbols<BR>
<BR>
Hi Alex,<BR>
<BR>
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.<BR>
<BR>
Thanks,<BR>
Shash<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Alexander Neundorf [<A HREF="mailto:a.neundorf-work@gmx.net">mailto:a.neundorf-work@gmx.net</A>]<BR>
Sent: Sun 3/20/2011 11:33 AM<BR>
To: Chatterjee, Shash<BR>
Cc: cmake@cmake.org<BR>
Subject: Re: [CMake] Eclipse generator - scanner-discovered include pathsand pre-processor symbols<BR>
<BR>
On Wednesday 16 March 2011, Chatterjee, Shash wrote:<BR>
> Hi Alex,<BR>
><BR>
> In my case, I get little yellow icons with a question mark on the editor's<BR>
> left-hand gutter, with a "unresolved inclusion: <blah>". This happens on<BR>
> every new import, but also if I make changes to any CMakeLists.txt file<BR>
> within the project and CMake regenerates the .cproject file.<BR>
><BR>
> On my project, without the path container, I do not have (see attached<BR>
> screenshot) paths like:<BR>
><BR>
> /usr/include/c++/4.5.1<BR>
> /usr/include/c++/4.5.1/i686-redhat-linux<BR>
> /usr/include/c++/4.5.1/backward<BR>
> /usr/local/include<BR>
> /usr/lib/gcc/i686-redhat-linux/4.5.1/include<BR>
> /usr/include<BR>
><BR>
> I do not have these paths included explicitly with INCLUDE_DIRECTORIES()<BR>
> (and I do just that to temporarily workaround this). I suspect that in<BR>
> your project these paths are explicitly defined somewhere, or,<BR>
<BR>
No, I don't.<BR>
I just tried again, and I don't get the little yellow icons for stuff like<BR>
stdio.h.<BR>
Adding the line you propose doesn't change the behaviour here.<BR>
<BR>
Can you send me such a .cproject file from your system where it doesn't work ?<BR>
Maybe for some reason the collecting of built-in include dirs and macros<BR>
doesn't work on your system.<BR>
<BR>
Alex<BR>
<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>