[cmake-developers] Exporting dependent library targets in multiple export sets
Brad King
brad.king at kitware.com
Wed Aug 22 17:06:37 EDT 2012
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)
If a target in MyExport depends on a target not in the export
set then look at YourExport for it. If the target's dependency
is still not found we can search for other export sets containing
it and suggest one in the error message.
-Brad
More information about the cmake-developers
mailing list