View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0005496 | CMake | CMake | public | 2007-08-14 13:22 | 2008-02-21 14:25 | ||||
Reporter | Joseph Lisee | ||||||||
Assigned To | Miguel Figueroa | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0005496: Eclipse CDT4 Generator Cannot Handle CMAKE_BINARY_DIR inside CMAKE_SOURCE_DIR | ||||||||
Description | This error manifests itself in two ways so far. 1) We have a large project that currently uses both the Xcode and Unix Makefile generators with success. We follow the practice of having the build directory inside the root of the source tree. So we have a "build" folder at the root of the tree inside which we run "cmake ../". With the CDT generator I get the following error upon importing into my workspace: "Cannot create a link to '<project_root>' because it overlaps the location of the project that contains the linked resource" Where <project_root> is my CMAKE_SOURCE_DIR. 2) I created hello world project to test this, and it does not manifest the above symptom. Yet both the hello world project and my real world project do have this problem: Any attempt to modify the project settings give the following error: "<build_dir> is not a valid location because the project contains a linked resource at that location." Where <build_dir> is the CMAKE_BINARY_DIR. Moving the CMAKE_BINARY_DIR outside of the CMAKE_SOURCE_DIR appears to fix the problem. | ||||||||
Additional Information | I am on OS X 10.4 ppc with the latest version of Eclipse and CDT4. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | ![]() | ||||||||
Relationships | |
Relationships |
Notes | |
(0008499) Alex Neundorf (developer) 2007-08-17 11:57 |
Can you please check that this still happens with current cvs ? There were some changes which may fix this. Alex |
(0009692) Alex Neundorf (developer) 2007-11-16 10:29 |
Same here. I suggest to skip the creation of the linked resource. See also my other bug report about the source-only projects. |
(0010622) Alex Neundorf (developer) 2008-02-21 14:25 |
I committed the fix for this cvs a few days ago. If you have your build dir now inside the source dir, you don't get the linked resources anymore. If you still want a tree with the source files, you can tell cmake to create a "source project", which you can then import into eclipse (the same way as the build project): cmake -DECLIPSE_CDT4_GENERATE_SOURCE_PROJECT=TRUE <srcdir> |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2007-08-14 13:22 | Joseph Lisee | New Issue | |
2007-08-17 11:57 | Alex Neundorf | Note Added: 0008499 | |
2007-08-17 11:57 | Alex Neundorf | Assigned To | => Alex Neundorf |
2007-08-17 11:57 | Alex Neundorf | Status | new => feedback |
2007-08-27 15:01 | Joseph Lisee | File Added: test.zip | |
2007-08-31 11:40 | Alex Neundorf | Status | feedback => assigned |
2007-08-31 11:40 | Alex Neundorf | Assigned To | Alex Neundorf => Miguel Figueroa |
2007-11-16 10:29 | Alex Neundorf | Note Added: 0009692 | |
2008-02-21 14:25 | Alex Neundorf | Note Added: 0010622 | |
2008-02-21 14:25 | Alex Neundorf | Status | assigned => closed |
2008-02-21 14:25 | Alex Neundorf | Resolution | open => fixed |
2008-02-21 14:25 | Alex Neundorf | Category | => CMake |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |