[cmake-developers] Setting the link interface and dependencies in one command

Rolf Eike Beer eike at sf-mail.de
Mon Oct 3 08:56:30 EDT 2011


Am Montag, 3. Oktober 2011, 10:50:25 schrieb Alexander Neundorf:
> On Sunday 02 October 2011, Rolf Eike Beer wrote:
> > On Sa.,   1. Okt. 2011 18:40:09 CEST, Alexander Neundorf
> > <neundorf at kde.org>
> 
> wrote:
> > > If library bar internally uses symbols from foo,
> > > it needs to link against foo.
> > 
> > Correct.
> > 
> > > But if bar doesn't expose symbols from foo in its
> > > interface, and my executable   hello links against bar, it doesn't
> > > also
> > > have to be linked against foo. This saves startup time and other
> > > things. Packagers also like that.
> > 
> > No, you got something wrong here.
> 
> Let me restate my sentence from above more verbose:
> "... and my executable hello links against bar, using only symbols exposed
> by bar, and not using symbols from foo, it doesn't also have to be linked
> against foo."

Ah, yes. Then it makes perfect sense.

Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20111003/2388e3cc/attachment.sig>


More information about the cmake-developers mailing list