MantisBT - CMake
View Issue Details
0010355CMakeCMakepublic2010-03-01 15:592016-06-10 14:31
Seelan Vamatheva 
Bill Hoffman 
normalminoralways
closedmoved 
CMake-2-8 
 
0010355: file (GLOB ... ) returns empty on linux
file( GLOB tmp "*.*" ) will return empty on linux. It works fine on windows. Also worked fine with CMake 2.6 for both windows and linux.
Test script:

cmake_minimum_required( VERSION 2.6 )
set( CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true )

set( tmp "" )
file( GLOB tmp "*.*" )
message( "FILES: ${tmp}" )
No tags attached.
tar cmakeTest1.tar (10,240) 2010-03-01 15:59
https://public.kitware.com/Bug/file/2922/cmakeTest1.tar
Issue History
2010-03-01 15:59Seelan VamathevaNew Issue
2010-03-01 15:59Seelan VamathevaFile Added: cmakeTest1.tar
2010-03-01 16:57Bill HoffmanNote Added: 0019672
2010-03-01 16:57Bill HoffmanStatusnew => assigned
2010-03-01 16:57Bill HoffmanAssigned To => Bill Hoffman
2016-06-10 14:27Kitware RobotNote Added: 0041662
2016-06-10 14:27Kitware RobotStatusassigned => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0019672)
Bill Hoffman   
2010-03-01 16:57   
I can not reproduce the problem here?


hoffman@hythloth:~/cmtest$ ~/cmake-2.8.1-rc3-Linux-i386/bin/cmake -P cmakeTest1.cmake
FILES: /home/hoffman/cmtest/test.txt;/home/hoffman/cmtest/cmakeTest1.cmake


hoffman@hythloth:~/cmtest$ touch foo.txt
hoffman@hythloth:~/cmtest$ ~/cmake-2.8.1-rc3-Linux-i386/bin/cmake -P cmakeTest1.cmake
FILES: /home/hoffman/cmtest/test.txt;/home/hoffman/cmtest/foo.txt;/home/hoffman/cmtest/cmakeTest1.cmake


???

How did you build CMake?
(0041662)
Kitware Robot   
2016-06-10 14:27   
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.