[CMake] Eclipse CDT Bug?

Mauricio de Paulo mauricio.dev at gmail.com
Mon Nov 21 13:06:50 EST 2011


Hi Alexander, thanks for the quick reply!

As far as I've read, the problem is with the <linkedResources> tag. The 
workaround I wrote just removes the <link> inside it.

I've downloaded cmake 2.8.6, removed 2.8.5 packaged, and tested it with 
the same results. I'm afraid the problem persists. Is this tag doing 
what it's suposed to do? My project is pretty simple, just a few cpps 
and one link target.

I haven't tested out source builds with the tag removed, but I think the 
workaround might solve this too.

I'm attaching the .project generated with the command bellow:

cmake -G"Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug .

Am i doing something wrong?


Mauricio C. M. de Paulo
Engenheiro Cartógrafo
Mestrando em Sensoriamento Remoto (INPE)


On 11/21/2011 02:39 PM, Alexander Neundorf wrote:
> On Monday 21 November 2011, Mauricio de Paulo wrote:
>> Hi list,
>> I've just recently became a CMake user and I'm really glad such a
>> powerfull tool is available.
>>
>> I've used CMake with KDevelop so far but I'd really like to change to
>> Eclipse.
>>
>> I've found that the Eclipse generator is not working properly and I
>> wrote myself a simple fix after some hours googling for solutions:
>>
>> cmake -G"Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug .
>> awk -vRS="</link>"  '{gsub(/<link>.*/,"") }1' .project>  .project-new
>> mv -f .project-new .project
>>
>> Someone wrote about a bug with CMake 2.8.5 that was generating a few
>> wrong tags when exporting to Eclipse. The code above is just a shell
>> script with awk to remove the wrong tags.
>>
>> Is this already fixed on CMake 2.8.6?
> Please give it a try, I think so.
> You can simply download the binary package for Linux from www.cmake.org and
> unpack it anywhere on your system (e.g. /opt), it will work.
>
>> I'm using kubuntu 11.10 and the
>> CMake version in the repository is 2.8.5.
> Or please send me the corupted .project file.
>
> Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: project
Type: text/xml
Size: 3697 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20111121/f8b0dd9a/attachment.bin>


More information about the CMake mailing list