MantisBT - CMake
View Issue Details
0012213CMakeCMakepublic2011-05-21 21:462015-01-13 14:32
KZ 
Alex Neundorf 
normalmajoralways
closedfixed 
LinuxUbuntu11.04
CMake 2.8.3 
 
0012213: Eclipse CDT4 Generator: Incompleted <linkedResources>
I just installed cmake 2.8.3 on a Ubuntu 11.04 system and generated a Eclipse CDT4 project.

The generated project did not contain all the required linked resources. This makes the project unusable in Eclipse.

The exact same CMakeLists.txt generates a working Eclipse project in cmake 2.8.0.

See the attached cdt4.tgz.

Compare the two eclipse-$VER projects for output from each cmake version tested.
1. tar xfa cdt4.tgz
2. export PROJ_DIR=`pwd`/sample/baz/project
3. Using cmake version 2.8.0
   a cd eclipse-2.8.0
   b cmake $PROJ_DIR -G"Eclipse CDT4 - Unix Makefiles"

4. Using cmake version 2.8.3
   a cd eclipse-2.8.3
   b cmake $PROJ_DIR -G"Eclipse CDT4 - Unix Makefiles"

6. Compare .project files in 2.8.0 and 2.8.3. The one in 2.8.3 has an incomplete <linkedResource> section.
No tags attached.
related to 0012417closed Alex Neundorf CDT4 generator: source path configured incorrectly 
related to 0012223closed Alex Neundorf Support of linked resources in Eclipse/CDT (single files, not folders) 
related to 0012479closed Alex Neundorf Generated Eclipse CDT files only valid for >= Helios (3.6) 
related to 0015347closed Alex Neundorf Eclipse indexing no longer works 
tgz cdt4.tgz (89,299) 2011-05-21 21:46
https://public.kitware.com/Bug/file/3888/*
Issue History
2011-05-21 21:46KZNew Issue
2011-05-21 21:46KZFile Added: cdt4.tgz
2011-05-21 21:49KZNote Added: 0026566
2011-05-22 05:18Alex NeundorfAssigned To => Alex Neundorf
2011-05-22 05:18Alex NeundorfStatusnew => assigned
2011-07-29 16:58Alex NeundorfNote Added: 0027123
2011-08-25 02:21KZNote Added: 0027269
2011-08-25 02:26KZNote Edited: 0027269bug_revision_view_page.php?bugnote_id=27269#r408
2011-09-30 14:53Alex NeundorfRelationship addedrelated to 0012417
2011-09-30 14:54Alex NeundorfRelationship addedrelated to 0012223
2011-09-30 15:18Alex NeundorfRelationship addedchild of 0012479
2011-09-30 15:19Alex NeundorfRelationship deletedchild of 0012479
2011-09-30 15:19Alex NeundorfRelationship addedrelated to 0012479
2011-10-23 09:11Alex NeundorfNote Added: 0027629
2011-10-23 09:11Alex NeundorfStatusassigned => closed
2011-10-23 09:11Alex NeundorfResolutionopen => fixed
2015-01-13 14:32Brad KingRelationship addedrelated to 0015347

Notes
(0026566)
KZ   
2011-05-21 21:49   
Title should say "Incomplete" not "Incompleted"
(0027123)
Alex Neundorf   
2011-07-29 16:58   
Can you please check whether that's still the case with CMake 2.8.5 ?

Thanks
Alex
(0027269)
KZ   
2011-08-25 02:21   
(edited on: 2011-08-25 02:26)
I updated to 2.8.5 and the Eclipse project now has the correct linked folders under [Subprojects].

For some reason the Eclipse indexer is still totally hosed. Some of the includes are not being resolved. Eclipse lists 1000s of errors in my project because it can't resolve types.

Ctrl+B in Eclipse, or make from the shell builds without error.

I will post an update when I know more.

(0027629)
Alex Neundorf   
2011-10-23 09:11   
The missing linked resources were added in 2.8.5.

Now I committed a change so that no src-pathentries at all are generated anymore, and I didn't notice any problems.

This is now in the "next" branch of cmake (66bd543) and should be in 2.8.7.

Please give it a try and let me know if something doesn't work.