Gentoo Archives: gentoo-dev

From: Luca Barbato <lu_zero@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] supporting static-libs
Date: Sat, 22 Sep 2012 16:03:43
Message-Id: 505DE113.1080408@gentoo.org
In Reply to: Re: [gentoo-dev] supporting static-libs by hasufell
1 On 09/22/2012 05:25 PM, hasufell wrote:
2
3 > add_library(foostatic STATIC foo.cpp foo.h)
4 > set_target_properties(foostatic PROPERTIES OUTPUT_NAME foo)
5 > add_library(foo SHARED foo.cpp foo.h)
6
7 Looks a bit kludgy but should work well as a macro, willing to contact
8 upstream and/or ask cmake devs to include it? Looks like you have a
9 simple solution for this problem =)
10
11 lu