Re: [CMake] target_link_libraries between dll and static libs

2008-06-09 Thread Andreas Fredriksson
On Mon, Jun 9, 2008 at 8:48 PM, Alexander Neundorf <[EMAIL PROTECTED]> wrote: > Which behaviour do you expect here ? > Not everything from slib will be included in dlib1. Hi Alexander, assuming you mean dlib2 (dlib1 lists slib in its target_link_libraries, so it should get a copy of slib included)

Re: [CMake] target_link_libraries between dll and static libs

2008-06-09 Thread Alexander Neundorf
On Monday 09 June 2008, Andreas Fredriksson wrote: > Hi, > I'm wondering why the below CMake snippet causes dlib2 to link with > slib. Does it really make sense to propagate static dependencies > upward from dynamic libraries or am I missing something? Is there a > way to disable it? :) > > add_lib

[CMake] target_link_libraries between dll and static libs

2008-06-09 Thread Andreas Fredriksson
Hi, I'm wondering why the below CMake snippet causes dlib2 to link with slib. Does it really make sense to propagate static dependencies upward from dynamic libraries or am I missing something? Is there a way to disable it? :) add_library(slib STATIC lib1.c) add_library(dlib1 SHARED dlib1.c) targ