[CMake] Eclipse/CMake projects show same file multiple times

Magnus Therning magnus at therning.org
Sat Mar 9 02:33:48 EST 2013


On Thu, Mar 07, 2013 at 10:15:44PM +0100, Alexander Neundorf wrote:
> On Thursday 07 March 2013, Campbell Barton wrote:
> > With default Eclipse project (version 2.8.10.2), "Eclipse CDT4 - Unix
> > Makefiles", I get the same file showing multiple times when using
> > Open-Resources.
> > 
> > It also shows object files in the listing (.o) which is fairly
> > annoying and makes Open-Resources not that useful.
> > 
> > Example screenshot:
> > http://www.graphicall.org/ftp/ideasman42/eclipse_cmake_project.png
> > 
> > Is this a known problem?, Should I report a bug?
> 
> Set the cmake variable CMAKE_ECLIPSE_GENERATE_LINKED_RESOURCES to FALSE (since 
> 2.8.10 I think, it's in the cache) to FALSE, and see whether this is better 
> for you.
> 
> Also, please try 2.8.11, for which RCs will be out really soon now. This has 
> an additional change which has to do with this.

Ah, I'll definitely have to try that trick.

Another, but related question, when using the Eclipse+Ninja generator
I end up with an awful lot of Ninja-related files in the top level of
the Eclipse project.  Is there some way to avoid that?

/M

-- 
Magnus Therning                      OpenPGP: 0xAB4DFBA4 
email: magnus at therning.org   jabber: magnus at therning.org
twitter: magthe               http://therning.org/magnus

Most software today is very much like an Egyptian pyramid with
millions of bricks piled on top of each other, with no structural
integrity, but just done by brute force and thousands of slaves.
     -- Alan Kay
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 230 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130309/31bc4636/attachment-0001.pgp>


More information about the CMake mailing list