MantisBT - CMake | |||||
| View Issue Details | |||||
| 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 | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://public.kitware.com/Bug/file/450/cmake_abs_path.tar.gz | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||