View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001368CMakepublic2004-11-19 10:192005-01-28 13:28
ReporterTroels Frimor 
Assigned ToSystem Admin 
PrioritylowSeveritymajorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001368: GET_FILENAME_COMPONENT with cache has no value
DescriptionThe command:
GET_FILENAME_COMPONENT(var_1 file_1 PATH CACHE)
does not put any value in the var_1(it is empty). Even though the file do exist.

The command without CACHE works fine:
GET_FILENAME_COMPONENT(var_1 file_1 PATH)
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0001997)
System Admin (reporter)
2005-01-28 13:28

I tested this on CMake 2.0.5 and it works fine. Here is my code:

SET(file "/usr/local/bin/mencoder")

GET_FILENAME_COMPONENT(var_1 ${file} PATH CACHE)
GET_FILENAME_COMPONENT(var_2 ${file} PATH)

MESSAGE("[${var_1}] [${var_2}]")

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team