On 03/22/2017 03:30 AM, Stanislav Pankevich wrote:
> 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?

There is no builtin way to do that, though you might be able to
get close with a macro that reads target properties from the
original in order to reproduce them with appropriate commands.

What is your use case?

-Brad

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to