[cmake-developers] Is it possible to clone an existing target?
Stanislav Pankevich
s.pankevich at gmail.com
Wed Mar 22 03:30:32 EDT 2017
Hello,
I have a target `MyTarget`. Is there a way I could do something like
clone_target(MyTarget MyNewTarget)
so that MyNewTarget appears to be the exact clone (deep copy) of original
target
with the only difference of a target name?
P.S. I understand that complex projects may be the edge-cases for a
general-purpose
cloning routine. I would be fine with a method that does the job in most of
the cases.
Thanks,
Stan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20170322/47fefc49/attachment.html>
More information about the cmake-developers
mailing list