[CMake] Export a custom property of a target

Marc CHEVRIER marc.chevrier at gmail.com
Wed Aug 22 10:03:24 EDT 2018


'define_property' is nearly useless except for documentation.

Export of custom properties is managed through target property
'EXPORT_PROPERTIES'.


Le mer. 22 août 2018 à 15:58, Raphael Grimm <raphael.grimm at kit.edu> a
écrit :

> Hi,
>
> I added a custom target property via 'define_property'
> (https://cmake.org/cmake/help/latest/command/define_property.html).
>
> When using this target in a different cmake project the property is not
> found by cmake and the meta information stored in the target property is
> lost.
>
> Is there a way to also export custom target properties?
>
> Regards
>
> Raphael
>
>
> --
>
> 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:
> https://cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20180822/75a93845/attachment.html>


More information about the CMake mailing list