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)

[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

[CMake] Runtime directory / staging question

2008-05-25 Thread Andreas Fredriksson
Hi list, first post here. I'm converting a software project to use CMake and while doing so I realized it the old visual studio projects wrote their output with a suffix to a common directory, so executables for different configurations would live side by side (foo_d.exe, foo_r.exe). I know how t