[cmake-developers] [PATCH] Extend copy and copy_if_different commands with support multiple files
gang65 at poczta.onet.pl
Fri Dec 4 11:15:05 EST 2015
Unfortunately we cannot use file(GLOB), because it is executed during
and we would like to copy files which is created during Build step.
Currently for filtering these files, we are using "cmake -E tar" to filter
these files (so it packing and upacking).
I think it is awful solution, but I cannot find better.
What would you propose in that case?
Is it possible to introduce "cmake -E list" command with wildcard support,
to be able to filter files/directories, during Build step?
The we couid use it to "cmake -E copy" command
2015-12-04 16:35 GMT+01:00 Brad King <brad.king at kitware.com>:
> On 12/04/2015 09:18 AM, Bartosz Kosiorek wrote:
> > Finally I manage to add wildcard support.
> > I have taken SimpleGlob.h library from:
> > https://github.com/brofield/simpleopt
> We don't want to do wildcard expansion in CMake commands. We want to leave
> it up to the shell to expand wildcards on the command line, or have
> file(GLOB) commands in CMake script code.
> I've applied the patches from the previous post, with a slightly
> different breakdown and some fixes to the test:
> cmake: Improve '-E' help message formatting
> cmake: Teach -E copy[_if_different] to support multiple files (#15703)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cmake-developers