View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015941CMakeCMakepublic2016-01-29 05:052016-06-10 14:31
ReporterJan Hegewald 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformMac OS / LinuxOSMac OS / SUSE Linux E ServerOS Version10.11.3 / 11
Product VersionCMake 3.4.3 
Target VersionFixed in Version 
Summary0015941: file glob case sensitivity depends on platform
Description[The OS did not fit in the above field, so here is the full version:
Mac OS 10.11.3 / SUSE Linux Enterprise Server 11 (x86_64)]

Cmakes file glob returns files regardless of the case used in the glob expression on Mac OS (even on a case sensitive filesystem). On Linux glob returns the files which match the case being used in the expression, as would be returned by the ls terminal command.
Steps To ReproduceHave two files where the suffix differs in case, use cmake file glob with on of the cases used in a suffix.
Example:
# directory
src/
  foo.f90
  bar.F90

# ls on Mac
ls src/*.F*
bar.F90

# cmake on Mac
file(GLOB all_sources ${src}/*.F*
message(STATUS "all_sources: ${all_sources}")
-- all_sources: /.../src/bar.F90;/.../src/foo.f90

# ls on Linux
ls src/*.F*
bar.F90

# cmake on Linus
file(GLOB all_sources ${src}/*.F*
message(STATUS "all_sources: ${all_sources}")
-- all_sources: /.../src/bar.F90
TagsNo tags attached.
Attached Filestxt file icon CMakeLists.txt [^] (294 bytes) 2016-01-29 05:05 [Show Content]

 Relationships

  Notes
(0040355)
Brad King (manager)
2016-01-29 08:42

Yes, the implementation would need to be taught to read filesystem properties on the volume where the globbing takes place to see whether it is case sensitive or not.
(0042926)
Kitware Robot (administrator)
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.

 Issue History
Date Modified Username Field Change
2016-01-29 05:05 Jan Hegewald New Issue
2016-01-29 05:05 Jan Hegewald File Added: CMakeLists.txt
2016-01-29 08:42 Brad King Note Added: 0040355
2016-06-10 14:29 Kitware Robot Note Added: 0042926
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team