[cmake-developers] Setting target properties before the target is defined ?
Alexander Neundorf
neundorf at kde.org
Wed Feb 20 15:57:17 EST 2013
On Wednesday 20 February 2013, Brad King wrote:
> On 02/20/2013 03:44 AM, Stephen Kelly wrote:
> > Brad King wrote:
> >> I think what we need is for the cmTarget::LinkInterface structure
> >> to have a new "TargetNames" member populated by ComputeLinkInterface
> >> from a new "INTERFACE_TARGET_DEPENDS" property (better names?).
> >> On export of the link interfaces the net collection of target names
> >> that refer to targets imported by the exporting project should be
> >> put in this property. Then cmComputeLinkDepends can complain when
> >> following the link interface and a library with one of these names
> >> cannot be found as a target.
> >
> > I may have missed something, but I've pushed a missing-imported-targets-
> > error branch to my clone which is quite simple. I haven't put a lot of
> > thought into it. It's just a proof of concept.
>
> Wonderful start. Thanks for working on it.
>
> Alex, does this do what you want?
Looks good.
But shouldn't the IMPORTED_LINK_DEPENDENT_LIBRARIES libs be also taken into
account ?
Alex
More information about the cmake-developers
mailing list