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

Alexander Neundorf a.neundorf-work at gmx.net
Sat Mar 12 15:12:22 EST 2011


On Friday 11 March 2011, David Cole wrote:
> On Fri, Mar 11, 2011 at 2:10 PM, Alexander Neundorf
>
> <a.neundorf-work at gmx.net> wrote:
> > On Friday 11 March 2011, Chatterjee, Shash wrote:
> >> Hi,
> >>
> >> Using CDT-2.8.2 on Fedora Core 14, and Eclipse Indigo/CDT
> >> (20101216-1529).
> >>
> >> Most everything works fine in the .project/.cproject, except the CDT
> >> indexer cannot find the compiler's built-in include paths/files and
> >> pre-processor symbols.  To fix that, all that has to be done is to go
> >> into the project Properties->C/C++ Project Paths->Path
> >> Containers->Add->Discovered scanner configuration container.
> >>
> >> All that does is add the following under the "<storageModule
> >> moduleId="org.eclipse.cdt.core.pathentry"> element in .cproject:
> >> <pathentry kind="con"
> >> path="org.eclipse.cdt.make.core.DISCOVERED_SCANNER_INFO"/>
> >>
> >> Can this be added to the Eclipse generator?
> >
> > Please check with cmake 2.8.3 or 2.8.4.
> > I think I added this last year, but I'm not quite sure for which release
> > it was.
> >
> > Alex
>
> No. There are no ** kind="con" ** pathentry values in the CMake
> 'master' as of right now... There are kind="inc" kind="src" kind="out"
> and kind="mac" ... but no kind="con". Unless it's hiding somewhere
> that my grep can't find.

So that stuff (included dirs and preprocessor symbols) has to be put twice 
into the project files ?

Alex



More information about the CMake mailing list