From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 4D650138010 for ; Sat, 22 Sep 2012 16:03:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AB9EFE00C2; Sat, 22 Sep 2012 16:03:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 40EAEE05E4 for ; Sat, 22 Sep 2012 16:02:40 +0000 (UTC) Received: from [192.168.43.224] (unknown [94.164.108.201]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: lu_zero) by smtp.gentoo.org (Postfix) with ESMTPSA id 1829433C50C for ; Sat, 22 Sep 2012 16:02:38 +0000 (UTC) Message-ID: <505DE113.1080408@gentoo.org> Date: Sat, 22 Sep 2012 18:02:27 +0200 From: Luca Barbato User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120801 Thunderbird/14.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] supporting static-libs References: <503C0DAC.8050207@gentoo.org> <201209032254.15788.reavertm@gmail.com> <505DD5F5.9040305@gentoo.org> <505DD857.6040207@gentoo.org> In-Reply-To: <505DD857.6040207@gentoo.org> X-Enigmail-Version: 1.5a1pre Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: f68e1c8b-e5b3-408f-91ad-26c5958a6b0a X-Archives-Hash: 9cf5135693646dab2e48f1a2579f7b35 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