MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0006854 | CMake | CMake | public | 2008-04-21 06:25 | 2016-06-10 14:30 |
| Reporter | Petr Baloun | ||||
| Assigned To | Brad King | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | CMake-2-6 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0006854: GET_FILENAME_COMPONENT doesn't work when file name contains multiple dots | ||||
| Description | Have following code: SET(TESTNAME "test1.test2.test3") GET_FILENAME_COMPONENT(FNAME ${TESTNAME} NAME_WE) GET_FILENAME_COMPONENT(EXT ${TESTNAME} EXT) MESSAGE(${FNAME}) MESSAGE(${EXT}) Cmake's output is: test1 .test2.test3 There are two problems: - cmake divides the file name and the extension by the first dot - the extension IMHO starts after the last dot - when EXT is specified, output variable receives the extension including the dot at the beginning (which is IMHO not part of extension) | ||||
| Steps To Reproduce | |||||
| Additional Information | Tried with cmake 2.4.8 and cmake 2.7.20080421 | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2008-04-21 06:25 | Petr Baloun | New Issue | |||
| 2008-08-19 15:46 | Bill Hoffman | Status | new => assigned | ||
| 2008-08-19 15:46 | Bill Hoffman | Assigned To | => Brad King | ||
| 2012-08-13 10:37 | Brad King | Status | assigned => backlog | ||
| 2012-08-13 10:37 | Brad King | Note Added: 0030541 | |||
| 2016-06-10 14:27 | Kitware Robot | Note Added: 0041422 | |||
| 2016-06-10 14:27 | Kitware Robot | Status | backlog => resolved | ||
| 2016-06-10 14:27 | Kitware Robot | Resolution | open => moved | ||
| 2016-06-10 14:30 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||