| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0002797 | CMake | CMake | public | 2006-01-30 16:48 | 2006-01-31 10:47 | ||||
| Reporter | Alex Neundorf | ||||||||
| Assigned To | Brad King | ||||||||
| Priority | normal | Severity | major | Reproducibility | always | ||||
| Status | closed | Resolution | fixed | ||||||
| Platform | OS | OS Version | |||||||
| Product Version | |||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0002797: GET_FILENAME_PROPERTY(... ABSOLUTE) works only from CMAKE_SOURCE_DIR | ||||||||
| Description | Hi, GET_FILENAME_COMPONENT(absPath main.c ABSOLUTE) always assumes that the filename given is relative to CMAKE_SOURCE_DIR, not relative to CMAKE_CURRENT_SOURCE_DIR. This means that with the following dir structure: ~/src/CMakeLists.txt ~/src/sub/CMakeLists.txt ~/src/sub/main.c if src/sub/CMakeLists.txt contains GET_FILENAME_COMPONENT(absPath main.c ABSOLUTE) it "returns" src/main.c instead of src/sub/main.c . Attached you can find a simple testcase. Alex | ||||||||
| Tags | No tags attached. | ||||||||
| Attached Files | |||||||||
| Relationships | |
| Relationships |
| Notes | |
|
(0003627) Brad King (manager) 2006-01-31 09:52 |
I'm assigning this bug to myself. |
|
(0003642) Brad King (manager) 2006-01-31 10:47 |
I've put in a fix: /cvsroot/CMake/CMake/Source/cmGetFilenameComponentCommand.cxx,v <-- cmGetFilenameComponentCommand.cxx new revision: 1.14; previous revision: 1.13 Please reopen the bug if it doesn't work. |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |