[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] creating a shared and static library of the same name
From:       "Michael Biebl" <mbiebl () gmail ! com>
Date:       2006-05-16 17:44:16
Message-ID: aa76cdac0605161044p5a723209le786c1dc1e82c2af () mail ! gmail ! com
[Download RAW message or body]

On 5/15/06, Xavier Delannoy <xavier.delannoy@netasq.com> wrote:
> it's possible with CMake greater to 2.3.4. I used two diferent destinatio=
n directories for the static and shared libs.
>

Thanks Xavier for this detailed (and lengthy) instructions. But they
are way too complicated and cumbersome imho.
Under Unix/Linux it's not that uncommon that you want to create both,
a shared and dynamic library (of the same name of course). Why not add
a new keyword to add_library like "BOTH" so it automatically creates
both types. On platforms like windows, where there are potential
problems as Brad outlined, you could output a warning or create a
workaround like two different output folders automatically.

Michael

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic