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

List:       gentoo-dev
Subject:    Re: [gentoo-dev] supporting static-libs
From:       Luca Barbato <lu_zero () gentoo ! org>
Date:       2012-09-22 16:02:27
Message-ID: 505DE113.1080408 () gentoo ! org
[Download RAW message or body]

On 09/22/2012 05:25 PM, hasufell wrote:

> add_library(foostatic STATIC foo.cpp foo.h)
> set_target_properties(foostatic PROPERTIES OUTPUT_NAME foo)
> add_library(foo SHARED foo.cpp foo.h)

Looks a bit kludgy but should work well as a macro, willing to contact
upstream and/or ask cmake devs to include it? Looks like you have a
simple solution for this problem =)

lu



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

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