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

Dirk Mueller mueller at kde.org
Mon Jun 30 17:25:41 CEST 2008


On Monday 30 June 2008, Thiago Macieira wrote:

> >> The only QtXml user is kross/core/action.h
> The point is that most applications won't be using QtXml symbols, so they
> shouldn't be linking *directly* to QtXml. If they do use them, then they
> should link.

In some cases, there is no way to use the API of a particular library without 
using the symbols of another library. This is probably very often the case in 
KDE: it is hard to use kdeui without also using kdecore. Therefore, such 
dependencies should be listed. 

> Every application and library has to explicitly list all of its direct
> dependencies and only the direct ones. Anything else is an error.
>
> This interface stuff is just a convenience.

No, it is not only convenience, it is correctness. 


Greetings,
Dirk


More information about the Kde-buildsystem mailing list