[cmake-developers] [PATCH] CMakeExpandImportedTargets: use INTERFACE_LINK_LIBRARIES if non-empty

Brad King brad.king at kitware.com
Mon Jul 20 10:51:27 EDT 2015


On 07/17/2015 01:43 PM, Tamás Kenéz wrote:
> We feed our static lib and the list of its dependencies to the
> `libtool` to create an amalgamated, standalone static library.
> This is an iOS-specific issue

Okay, and of course that needs to include imported static libraries.

> Anyway, I understand if `CMakeExpandImportedTargets' doesn't fit
> the current concepts. We will then use a local modified copy of
> it or try to solve the issue by `install(CODE ..)` to postpone
> the amalgamation to install time where the generator expressions
> can be resolved.

Yes, a locally-maintained solution can work for you without solving
the problem in the general case which is much harder.

Thanks,
-Brad



More information about the cmake-developers mailing list