MantisBT - CMake | ||||||||||||||||||||
| View Issue Details | ||||||||||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||||||||||||
| 0012417 | CMake | CMake | public | 2011-08-24 04:51 | 2011-12-16 17:16 | |||||||||||||||
| Reporter | Simon Barner | |||||||||||||||||||
| Assigned To | Alex Neundorf | |||||||||||||||||||
| Priority | normal | Severity | minor | Reproducibility | always | |||||||||||||||
| Status | closed | Resolution | fixed | |||||||||||||||||
| Platform | x86 | OS | Windows | OS Version | 7 | |||||||||||||||
| Product Version | CMake 2.8.5 | |||||||||||||||||||
| Target Version | CMake 2.8.7 | Fixed in Version | CMake 2.8.7 | |||||||||||||||||
| Summary | 0012417: CDT4 generator: source path configured incorrectly | |||||||||||||||||||
| Description | I use CMake 2.8.5 to generate Eclipse CDT4 projects (Eclipse Helios SR2 for C/C++ developers, CDT with mingw makefiles). Since 2.8.5, for each project that is added using add_subdirectory(), a linked resource is created which enables me to easily navigate to files of subprojects. However, the source path for my linked subproject seems to be incorrect since I get the following warnings (see below for a test case). Invalid project path: Missing project folder or file \test@build\test for source path Invalid project path: Missing project folder or file \test@build\sub for source path Unfortunately, this seems to prevent the Eclipse indexer from correctly picking up the files in my subprojects. I had a look at the generated .cproject, and here the following path entries are generated: <pathentry kind="src" path="[Source directory]"/> <pathentry kind="src" path="/sub"/> <pathentry kind="src" path="/test"/> When I manually modify the generated .cproject file to match the actual virtual folders the warnings go away and the index works correctly: <pathentry kind="src" path="[Source directory]"/> <pathentry kind="src" path="[Subprojects]/sub"/> <pathentry kind="src" path="[Subprojects]/test"/> Please note, it also possible to simply add the virtual [Subprojects] folders as a path entry: <pathentry kind="src" path="[Source directory]"/> <pathentry kind="src" path="[Subprojects]"/> | |||||||||||||||||||
| Steps To Reproduce | Here is my test case (see also attachment) Directory layout: project project/test/CMakeLists.txt project/test/sub/CMakeLists.txt project/build project/test/CMakeLists.txt: -- project(test) add_subdirectory(test) -- project/test/sub/CMakeLists.txt: -- project(sub) -- I configured an out-of-source build to project/build which I imported into Eclipse. | |||||||||||||||||||
| Additional Information | ||||||||||||||||||||
| Tags | No tags attached. | |||||||||||||||||||
| Relationships |
| |||||||||||||||||||
| Attached Files | https://public.kitware.com/Bug/file/4016/testcase-CDT4.zip | |||||||||||||||||||
| Issue History | ||||||||||||||||||||
| Date Modified | Username | Field | Change | |||||||||||||||||
| 2011-08-24 04:51 | Simon Barner | New Issue | ||||||||||||||||||
| 2011-08-24 04:51 | Simon Barner | File Added: testcase-CDT4.zip | ||||||||||||||||||
| 2011-08-24 11:55 | Alex Neundorf | Assigned To | => Alex Neundorf | |||||||||||||||||
| 2011-08-24 11:55 | Alex Neundorf | Status | new => assigned | |||||||||||||||||
| 2011-09-30 14:53 | Alex Neundorf | Relationship added | related to 0012213 | |||||||||||||||||
| 2011-09-30 14:54 | Alex Neundorf | Relationship added | related to 0012223 | |||||||||||||||||
| 2011-09-30 15:17 | Alex Neundorf | Relationship added | related to 0012479 | |||||||||||||||||
| 2011-10-04 16:16 | Alex Neundorf | Note Added: 0027523 | ||||||||||||||||||
| 2011-10-05 15:55 | Simon Barner | Note Added: 0027528 | ||||||||||||||||||
| 2011-10-05 16:00 | Alex Neundorf | Note Added: 0027530 | ||||||||||||||||||
| 2011-10-23 09:05 | Alex Neundorf | Note Added: 0027626 | ||||||||||||||||||
| 2011-10-23 09:05 | Alex Neundorf | Status | assigned => closed | |||||||||||||||||
| 2011-10-23 09:05 | Alex Neundorf | Resolution | open => fixed | |||||||||||||||||
| 2011-12-16 17:16 | David Cole | Fixed in Version | => CMake 2.8.7 | |||||||||||||||||
| 2011-12-16 17:16 | David Cole | Target Version | => CMake 2.8.7 | |||||||||||||||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||