[cmake-developers] [CMake 0014789]: FILE(GLOB variable RELATIVE path globbing_expression) fails when the underlying path contains special character

Mantis Bug Tracker mantis at public.kitware.com
Thu Mar 6 07:49:41 EST 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=14789 
====================================================================== 
Reported By:                Ashok Kumar P
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14789
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-03-06 18:19 IST
Last Modified:              2014-03-06 18:19 IST
====================================================================== 
Summary:                    FILE(GLOB variable RELATIVE path
globbing_expression) fails when the underlying path contains special character
Description: 
FILE(GLOB variable RELATIVE path globbing_expression) fails to generate the list
of files when the path contains "[some_text]".

Steps to Reproduce: 
List files in a directory whose path contains '[some_text]'

--> FILE(GLOB lstFiles RELATIVE ${dirPath} ${dirPath}/*)
or
--> FILE(GLOB lstFiles RELATIVE "${dirPath} "${dirPath}/*")

Additional Information: 
Escaping '[' and ']' in CMAKE returned PATHs should prevent this, I haven't
tested it.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-03-06 18:19 Ashok Kumar P  New Issue                                    
======================================================================



More information about the cmake-developers mailing list