[cmake-developers] ExternalProject and git clone

Daniele E. Domenichelli daniele.domenichelli at gmail.com
Wed Sep 11 12:46:34 EDT 2013


On 10/09/13 19:54, David Cole wrote:
>     set(dir ".")
> 
>     file(GLOB r1 "${dir}/*")
>     list(LENGTH r1 n1)
>     message("n1='${n1}'")
> 
>     file(GLOB r2 "${dir}/*.*")
>     list(LENGTH r2 n2)
>     message("n2='${n2}'")
> 
> convinces me that n1 and n2 should both be 0 in an empty directory, and 
> non-0 in a directory that contains any subdirs or files, even invisible 
> ones like .git.


The second version is 0 even if you have only files without a '.' in the
name, therefore I'll use the first version...

Thanks,

 Daniele



More information about the cmake-developers mailing list