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

Alexander Neundorf neundorf at kde.org
Wed Jun 11 00:42:37 CEST 2008


On Tuesday 03 June 2008, Alexander Neundorf wrote:
> On Thursday 29 May 2008, Dirk Mueller wrote:
> ...
>
> > All fine for me, go ahead. I can help with fixing/testing it somewhen end
> > of next week.
>
> Ok, done.
>
> On Tuesday 03 June 2008, Modestas Vainius wrote:
> > Hi,
> >
> > Tuesday 03 June 2008, jūs rašėte:
> > > As discussed with Dirk, make the link interface empty by default, i.e.
> > > by default apps linking to libfoo won't be linked to the libs libfoo.so
> > > links against too anymore.
> >
> > Are you aware that we at Debian have already done this but to a lesser
> > extent?
>
> Yes.
>
> > (resetting all LINK_INTERFACE_LIBRARIES to empty is too drastic, imho).
>
> Setting them empty by default is the conclusion from my discussion with
> Dirk at LinuxTag.
>
> > Anyway, checkout
> > <module>/debian/patches/97_fix_target_link_libraries.diff patches from
> > either [1] or [2]. For kdelibs, the patch is named
> > 98_link_interface_libraries.diff. kdelibs 99_ patch adds more
> > compatibility with previous recursive linking (only internal kdelibs
> > stuff, which I believe can be dropped from link_interface_libraries).
> > However, I think, kdelibs people should be consulted first before messing
> > with their library targets.
>
> Yes. I think kde-buildsystem, Dirk and me count as "kdelibs people". This
> is experimental for now and Dirk wants to give it a try. Then we can see
> what we do.

Dirk, did you already find the time to give it a try ?
I'd say kdecore, kdeui and kio should drag in most of the Qt libs. They are 
required anyway and this should make life easier.

Alex


More information about the Kde-buildsystem mailing list