[cmake-developers] Adding non-IMPORTED targets to the INTERFACE of IMPORTED targets?
Brad King
brad.king at kitware.com
Thu Jun 6 11:20:42 EDT 2013
On 06/06/2013 10:58 AM, Stephen Kelly wrote:
> set_property(TARGET some_imported APPEND PROPERTY
> LINK_INTERFACE_LIBRARIES foo
> )
[snip]
> Fixing it is quite easy I think. All non-IMPORTED targets from the INTERFACE
> of IMPORTED targets in the link implementation simply get appended to the
> result in GetDirectLinkLibraries.
Yes, if a project does that we should hook up the dependencies
correctly. We already support transitive dependencies through
imported targets onto non-imported targets through add_dependencies.
-Brad
More information about the cmake-developers
mailing list