[cmake-developers] [CMake 0012580]: get_filename_component behavior depends on CACHE keyword

Mantis Bug Tracker mantis at public.kitware.com
Wed Nov 16 11:39:27 EST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=12580 
====================================================================== 
Reported By:                arrowdodger
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12580
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   low
Status:                     new
====================================================================== 
Date Submitted:             2011-11-16 11:39 EST
Last Modified:              2011-11-16 11:39 EST
====================================================================== 
Summary:                    get_filename_component behavior depends on CACHE
keyword
Description: 
I'm running attached file with `cmake -P` and see this:

- DIR: /usr/local/include/dir
-- DIR: /usr/local/include

which is excepted. However, when i add CACHE keyword to the second
get_filename_component() invocation i see this:

-- DIR: /usr/local/include/dir
-- DIR: /usr/local/include/dir

Not sure if it's a bug, but looks suspicious.

Steps to Reproduce: 
Run attached script with `cmake -P`
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-11-16 11:39 arrowdodger    New Issue                                    
2011-11-16 11:39 arrowdodger    File Added: get_filename_cache.cmake            
       
======================================================================




More information about the cmake-developers mailing list