[CMake] globs case sensitivity depends on platform

Andreas Pakulat apaku at gmx.de
Thu Jan 28 10:43:37 EST 2016


Hi Jan,

On Thu, Jan 28, 2016 at 2:35 PM, 🐋 Jan Hegewald <jan.hegewald at awi.de>
wrote:

> Hi Nils,
>
> > On 28.01.2016, at 13:39, Nils Gladitz <nilsgladitz at gmail.com> wrote:
> >
> > You might already be aware but CMake discourages using GLOB for source
> files
>
> yes, I read the docs before posting (:
> Avoiding glob would be a workaround to my problem. But anyway I think that
> glob is broken if it produces different results on different platforms.
>

I can't find any docs on cmake.org about what a globbing-expression is
exactly, but the docs for file(glob) at least don't say anything about this
function producing the same results on different platforms. In fact I'd be
surprised if the behavior of the file(glob) function is different than
using the same wildcards with ls/dir on a terminal.

The only bug that I can see from your description is that the behavior is
inconsistent with different types of FS on OSX, that is definetly not
matching above mentioned expectation.

Anyway, the right place to report bugs/problems is
https://public.kitware.com/Bug/my_view_page.php

Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160128/2f5ce241/attachment.html>


More information about the CMake mailing list