<div dir="ltr"><div><div>Thanks Brad.<br><br></div>Unfortunately we cannot use file(GLOB), because it is executed during generate step,<br></div><div>and we would like to copy files which is created during Build step.<br><br></div><div>Currently for filtering these files, we are using "cmake -E tar" to filter these files (so it packing and upacking).<br></div><div>I think it is awful solution, but I cannot find better.<br></div><div>What would you propose in that case?<br><br></div><div>Is it possible to introduce "cmake -E list" command with wildcard support, to be able to filter files/directories, during Build step?<br></div><div>The we couid use it to "cmake -E copy" command<br><br></div><div>Best Regards<br></div><div>Bartosz<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-04 16:35 GMT+01:00 Brad King <span dir="ltr"><<a href="mailto:brad.king@kitware.com" target="_blank">brad.king@kitware.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 12/04/2015 09:18 AM, Bartosz Kosiorek wrote:<br>
> Finally I manage to add wildcard support.<br>
> I have taken SimpleGlob.h library from:<br>
> <a href="https://github.com/brofield/simpleopt" rel="noreferrer" target="_blank">https://github.com/brofield/simpleopt</a><br>
<br>
</span>We don't want to do wildcard expansion in CMake commands.  We want to leave<br>
it up to the shell to expand wildcards on the command line, or have explicit<br>
file(GLOB) commands in CMake script code.<br>
<br>
I've applied the patches from the previous post, with a slightly<br>
different breakdown and some fixes to the test:<br>
<br>
 cmake: Improve '-E' help message formatting<br>
 <a href="https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=0be5020b" rel="noreferrer" target="_blank">https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=0be5020b</a><br>
<br>
 cmake: Teach -E copy[_if_different] to support multiple files (#15703)<br>
 <a href="https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=384ae551" rel="noreferrer" target="_blank">https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=384ae551</a><br>
<br>
Thanks,<br>
-Brad<br>
</blockquote></div><br></div>