[CMake] Creating dependencies between static imported targets.

Tamás Kenéz tamas.kenez at gmail.com
Sun Aug 21 17:59:37 EDT 2016


In my company we're doing this all the time: cmakefying thirdparty
packages. Which means one of these things: (1) fixing existing cmake
support (2) converting autotools build to cmake (3) adding cmake driver to
autotools build.


On Sun, Aug 21, 2016 at 8:56 PM, Yaron Cohen-Tal <yaronct at gmail.com> wrote:

> That would have been ideal, however it seems to me not many packages ship
> with cmake config module files..
>
> On Sun, Aug 21, 2016 at 9:52 PM, Tamás Kenéz <tamas.kenez at gmail.com>
> wrote:
>
>> Defining the dependencies of an imported target should be done by the
>> target's config-module (or a file invoked by the config-module, usually
>> generated with install(EXPORT...) )
>>
>> On Sun, Aug 21, 2016 at 4:23 PM, Yaron Cohen-Tal <yaronct at gmail.com>
>> wrote:
>>
>>> Thanx!
>>>
>>> I think it would b nice though if the "target_XXX" commands would also
>>> work for imported targets, e.g.. by adding the dependency to
>>> "INTERFACE_LINK_LIBRARIES'. That way I sometimes can use the same command
>>> without checking if the depentent is imported.
>>>
>>> --
>>>
>>> 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
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160821/67d79e6d/attachment.html>


More information about the CMake mailing list