MantisBT - CMake |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0013963 | CMake | CMake | public | 2013-02-28 04:13 | 2013-07-01 09:39 |
|
Reporter | Albert Solernou | |
Assigned To | | |
Priority | normal | Severity | trivial | Reproducibility | always |
Status | closed | Resolution | no change required | |
Platform | Linux | OS | at least ubuntu and RHEL | OS Version | |
Product Version | CMake 2.8.9 | |
Target Version | | Fixed in Version | | |
|
Summary | 0013963: get_filename_component returns blank |
Description | Command get_filename_component fails to return the name of the file if its input string is not simple. This works:
get_filename_component(EDB "${CMAKE_INSTALL_PREFIX}/etc/emppack.db" NAME)
but the following fails
set(EMP_DB_FILE "${CMAKE_INSTALL_PREFIX}/etc/emppack.db" CACHE FILEPATH "name of the Emppack data base file. Full path must be included")
get_filename_component(EDB "${EDB_DB_FILE}" NAME)
|
Steps To Reproduce | set(EMP_DB_FILE "${CMAKE_INSTALL_PREFIX}/etc/emppack.db" CACHE FILEPATH "name of the Emppack data base file. Full path must be included")
get_filename_component(EDB "${EDB_DB_FILE} " NAME)
message(" this is the dbfile: ${EDB}") |
Additional Information | I could reproduce the error using cmake 2.8.7 and 2.8.9 on an updated Ubuntu 12.04 and on a RHEL 6.3. |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2013-02-28 04:13 | Albert Solernou | New Issue | |
2013-02-28 04:17 | Albert Solernou | Note Added: 0032405 | |
2013-02-28 04:59 | Rolf Eike Beer | Note Added: 0032406 | |
2013-02-28 04:59 | Rolf Eike Beer | Severity | major => trivial |
2013-02-28 04:59 | Rolf Eike Beer | Status | new => resolved |
2013-02-28 04:59 | Rolf Eike Beer | Resolution | open => no change required |
2013-07-01 09:39 | Robert Maynard | Note Added: 0033437 | |
2013-07-01 09:39 | Robert Maynard | Status | resolved => closed |