[cmake-developers] Exporting dependent library targets in multiple export sets

Yury G. Kudryashov urkud.urkud at gmail.com
Wed Aug 22 17:08:29 EDT 2012


2012/8/23 Brad King <brad.king at kitware.com>:
> On 08/22/2012 04:57 PM, Yury G. Kudryashov wrote:
>> I'm going to push the current state of my work to
>> git pull git://gitorious.org/~urkud1/cmake/urkud-cmake.git w/export-set
>> in a few minutes.
>
> Thanks for working on this!
>
>> It should work, though I haven't tested it yet. The idea is simple:
>> each target remembers the latest
>> install(TARGETS ... EXPORT)
>> command, and each export set remembers teh latest
>> install(EXPORT MyExport)
>> command. Then we query this information.
>
> Any "latest install" strategy is bound to generate subtle problems.
> Dependencies among export sets should be explicit:
>
>   install(EXPORT MyExport DEPENDS YourExport)
How should I choose between different
install(EXPORT YourExport)
commands?
-- 
Yours Yury,
mailto: urkud.urkud at gmail.com



More information about the cmake-developers mailing list