Reducing excess linkage - cmake 2.6 IMPORTED targets and LINK_INTERFACE_LIBRARIES for kdelibs

Alexander Neundorf neundorf at kde.org
Mon May 26 23:02:52 CEST 2008


On Monday 26 May 2008, you wrote:
> Hello,
>
> Monday 26 May 2008, Alexander Neundorf ra:
> > Dirk, Sune, Modestas, any comments or interest in this ?
>
> Thanks, it's already in use in Debian (for 4.0.80) and end results seem to
> be fully compatible with my previous kdelibs 97 patch. However, I have a

So you are already using it and it works ?
Nice to hear :-)

> few suggestions:
>
> 1) Could you split dependency generation code to the separate macro for
> e.g. kdepimlibs and anything else what currently exports dependencies in
> the same manner to use?

You mean the part with the loop over all variables ?
I'll have a look.

> 2) What about enclosing whole block (which resets _LIB_DEPENDS according to
> LINK_INTERFACE_LIBRARIES) in if (KDE4_ENABLE_EXPERIMENTAL_LIB_EXPORT) or
> other flag so lib export method can be chosen when building each app
> individually?

Why should we do this ?
I think having only one way and making this one true way work correctly is 
better.

Alex


More information about the Kde-buildsystem mailing list