| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0013596 | CMake | CMake | public | 2012-10-18 17:36 | 2015-01-13 14:32 | ||||
| Reporter | Chris Stankevitz | ||||||||
| Assigned To | Alex Neundorf | ||||||||
| Priority | normal | Severity | minor | Reproducibility | always | ||||
| Status | closed | Resolution | fixed | ||||||
| Platform | Eclipse CDT | OS | OS Version | ||||||
| Product Version | CMake 2.8.9 | ||||||||
| Target Version | CMake 2.8.11 | Fixed in Version | |||||||
| Summary | 0013596: Eclipse project: Set Source path to the source code directory | ||||||||
| Description | The Eclipse indexer by default indexes the entire project. This causes headaches as the cmake-generated projects include [Targets] and [Subprojects] which contain copies of all the source code. In bug 13189 we discuss marking the [Targets] and [Subprojects] resources as "derived". Unfortunately the CDT indexer seems to disregard their "derived" nature and indexes them anyway. For more info on this apparent CDT bug see https://bugs.eclipse.org/bugs/show_bug.cgi?id=390964 [^] and http://www.eclipse.org/forums/index.php?t=rview&goto=948782 [^] In addition to marking [Targets] and [Subprojects] resources as "derived", I recommend we also set the eclipse project "source path" to point to the [Source directory] resource. This causes CDT to limit its indexing to the [Source directory] resource. This solves the problems described in bug 13189. See attached for an example of manually making this change. | ||||||||
| Tags | No tags attached. | ||||||||
| Attached Files | ![]() | ||||||||
| Relationships | ||||||
|
||||||
| Relationships |
| Notes | |
|
(0031284) Alex Neundorf (developer) 2012-10-19 12:32 |
This looks good, thanks for pointing me to it. |
|
(0031298) Alex Neundorf (developer) 2012-10-23 16:43 |
Can you try the EclipseFixIndexerBySettingSourcePath branch from cmake stage ? http://cmake.org/gitweb?p=stage/cmake.git [^] Alternatively you can also simply put the attached cmExtraEclipseCDT4Generator.cxx in a cmake 2.8.9 or 2.8.10 source tree and rebuild cmake. Please let me know whether it works then for you as expected. |
|
(0031301) Chris Stankevitz (reporter) 2012-10-23 18:49 |
Yes, it works on Eclipse 3.8 under linux. Thank you so much this has been driving me nuts! PS: How do I make the branch from cmake stage build cmake-gui? It built only ccmake cmake cpack and ctest. If I can figure this out, I'm going to ditch my system install and use your branch until this fix gets released. |
|
(0031303) Alex Neundorf (developer) 2012-10-24 09:15 |
You have to set BUILD_QtDialog to TRUE, e.g. using ccmake. Alex |
|
(0031399) Alex Neundorf (developer) 2012-11-03 13:57 |
Merged into next, should be in 2.8.11. |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| 2012-10-18 17:36 | Chris Stankevitz | New Issue | |
| 2012-10-18 17:36 | Chris Stankevitz | File Added: Screenshot-Properties for uavlib-DEBUG@BuildDebug.png | |
| 2012-10-19 12:32 | Alex Neundorf | Note Added: 0031284 | |
| 2012-10-19 12:32 | Alex Neundorf | Assigned To | => Alex Neundorf |
| 2012-10-19 12:32 | Alex Neundorf | Status | new => assigned |
| 2012-10-23 16:43 | Alex Neundorf | Note Added: 0031298 | |
| 2012-10-23 16:44 | Alex Neundorf | File Added: cmExtraEclipseCDT4Generator.cxx | |
| 2012-10-23 18:49 | Chris Stankevitz | Note Added: 0031301 | |
| 2012-10-24 09:15 | Alex Neundorf | Note Added: 0031303 | |
| 2012-10-24 14:53 | David Cole | Target Version | => CMake 2.8.11 |
| 2012-11-03 13:57 | Alex Neundorf | Note Added: 0031399 | |
| 2012-11-03 13:57 | Alex Neundorf | Status | assigned => closed |
| 2012-11-03 13:57 | Alex Neundorf | Resolution | open => fixed |
| 2015-01-13 14:32 | Brad King | Relationship added | related to 0015347 |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |