| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| 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. | ||||||||
| Attached Files | |||||||||
| Relationships | |
| Relationships |
| Notes | |
|
(0032405) Albert Solernou (reporter) 2013-02-28 04:17 |
I could reproduce it using v. 2.8.10.2 |
|
(0032406) Rolf Eike Beer (developer) 2013-02-28 04:59 |
Guys, seriously. What about using the same variable in both places? this is the dbfile: emppack.db |
|
(0033437) Robert Maynard (manager) 2013-07-01 09:39 |
Closing resolved issues that have not been updated in more than 4 months. |
| Notes |
| 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 |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |