MantisBT - CMake
View Issue Details
0014789CMakeCMakepublic2014-03-06 07:492016-06-10 14:31
ParokshaX 
Kitware Robot 
normalminoralways
closedmoved 
Intel x86_64SolydX x64Testing
CMake 2.8.12.1 
 
0014789: FILE(GLOB variable RELATIVE path globbing_expression) fails when the underlying path contains special character
FILE(GLOB variable RELATIVE path globbing_expression) fails to generate the list of files when the path contains "[some_text]".
List files in a directory whose path contains '[some_text]'

--> FILE(GLOB lstFiles RELATIVE ${dirPath} ${dirPath}/*)
or
--> FILE(GLOB lstFiles RELATIVE "${dirPath} "${dirPath}/*")
Escaping '[' and ']' in CMAKE returned PATHs should prevent this, I haven't tested it.
CMake, path
Issue History
2014-03-06 07:49ParokshaXNew Issue
2014-03-06 07:50ParokshaXTag Attached: CMake
2014-03-06 07:50ParokshaXTag Attached: path
2016-06-10 14:29Kitware RobotNote Added: 0042500
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042500)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.