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

Alexander Neundorf neundorf at kde.org
Mon Oct 3 04:50:25 EDT 2011


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."

Alex



More information about the cmake-developers mailing list