| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0010438 | CMake | CMake | public | 2010-03-18 08:24 | 2011-05-02 14:46 | ||||
| Reporter | Lysius | ||||||||
| Assigned To | David Cole | ||||||||
| Priority | normal | Severity | feature | Reproducibility | N/A | ||||
| Status | closed | Resolution | no change required | ||||||
| Platform | OS | OS Version | |||||||
| Product Version | |||||||||
| Target Version | Fixed in Version | CMake 2.8.4 | |||||||
| Summary | 0010438: provide variables PROJECT_RELATIVE_DIR and [Project name]_RELATIVE_DIR | ||||||||
| Description | While looping through the subdirectories of my project, I frequently needed the relative path of the current directory relative to the main project directory. I'm using string(REPLACE "${PROJECT_SOURCE_DIR}/" "" PROJECT_RELATIVE_DIR "${CMAKE_CURRENT_SOURCE_DIR}") at the moment, but I would be pleased if this variable was provided by default (together with [Project name]_RELATIVE_DIR). | ||||||||
| Tags | No tags attached. | ||||||||
| Attached Files | |||||||||
| Relationships | |
| Relationships |
| Notes | |
|
(0024782) David Cole (manager) 2011-01-17 13:33 |
CMake usage typically involves specifying files by full path name in most contexts. Some commands document relative path usage as relative to the current source directory, in which case relative paths are well defined. It is unclear to me if this feature request is asking for relative path support for each subdir relative to just the top level, or to each dir above, or to ...? Could be N^2 if you want an any-to-any variable defined. Since this is so easy to do for the cases where you *DO* want to define a variable, using string REPLACE, I do not see this as a necessary, or very useful addition to CMake. Please re-open and comment, argue for your case if you feel strongly about this. Thanks. |
|
(0026344) David Cole (manager) 2011-05-02 14:46 |
Closing resolved issues that have not been updated in more than 3 months. |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| 2010-03-18 08:24 | Lysius | New Issue | |
| 2011-01-17 13:19 | David Cole | Assigned To | => David Cole |
| 2011-01-17 13:19 | David Cole | Status | new => assigned |
| 2011-01-17 13:33 | David Cole | Note Added: 0024782 | |
| 2011-01-17 13:33 | David Cole | Status | assigned => resolved |
| 2011-01-17 13:33 | David Cole | Fixed in Version | => CMake 2.8.4 |
| 2011-01-17 13:33 | David Cole | Resolution | open => no change required |
| 2011-05-02 14:46 | David Cole | Note Added: 0026344 | |
| 2011-05-02 14:46 | David Cole | Status | resolved => closed |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |