View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013963CMakeCMakepublic2013-02-28 04:132013-07-01 09:39
ReporterAlbert Solernou 
Assigned To 
PrioritynormalSeveritytrivialReproducibilityalways
StatusclosedResolutionno change required 
PlatformLinuxOSat least ubuntu and RHELOS Version
Product VersionCMake 2.8.9 
Target VersionFixed in Version 
Summary0013963: get_filename_component returns blank
DescriptionCommand 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 Reproduceset(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 InformationI 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.
TagsNo tags attached.
Attached Files

 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.

 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


Copyright © 2000 - 2018 MantisBT Team