[CMake] cmd.exe does not expand wildcards

Jean-Christophe Fillion-Robin jchris.fillionr at kitware.com
Wed Jun 8 12:21:35 EDT 2011


Hi Mathieu,

May be you could try the following ...

file(GLOB log_files "*.log")
if(log_files)
  execute_process(${CMAKE_COMMAND} -E tar cvfz test.tgz ${log_files})
endif()

Hth
Jc

On Wed, Jun 8, 2011 at 12:05 PM, Mathieu Malaterre <
mathieu.malaterre at gmail.com> wrote:

> Hi there,
>
>  Slightly off topic, but how do people cope with cmd.exe not
> expanding wildcards (*) ?
>
>  I would like to do something like:
>
> cmd> cmake -E tar cvfz test.tgz *.log
>
> Thanks
> --
> Mathieu
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>



-- 
+1 919 869 8849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110608/0b13e311/attachment.htm>


More information about the CMake mailing list