[cmake-developers] Setting target properties before the target is defined ?

Stephen Kelly steveire at gmail.com
Wed Feb 20 03:44:26 EST 2013


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.

Thanks,

Steve.





More information about the cmake-developers mailing list