Hi Mathieu, <br><br>May be you could try the following ... <br><br>file(GLOB log_files &quot;*.log&quot;)<br>if(log_files)<br>  execute_process(${CMAKE_COMMAND} -E tar cvfz test.tgz ${log_files})<br>endif()<br><br>Hth<br>Jc<br>

<br><div class="gmail_quote">On Wed, Jun 8, 2011 at 12:05 PM, Mathieu Malaterre <span dir="ltr">&lt;<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Hi there,<br>
<br>
  Slightly off topic, but how do people cope with cmd.exe not<br>
expanding wildcards (*) ?<br>
<br>
  I would like to do something like:<br>
<br>
cmd&gt; cmake -E tar cvfz test.tgz *.log<br>
<br>
Thanks<br>
--<br>
Mathieu<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>+1 919 869 8849<br><br>