From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 11C4E138334 for ; Thu, 26 Jul 2018 06:36:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ACFE8E089B; Thu, 26 Jul 2018 06:35:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3A508E088A for ; Thu, 26 Jul 2018 06:35:45 +0000 (UTC) Received: from thinkpad.fritz.box (cable-static-238-109.teleport.ch [213.188.238.109]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: soap) by smtp.gentoo.org (Postfix) with ESMTPSA id F2B5F335C8D; Thu, 26 Jul 2018 06:35:41 +0000 (UTC) From: soap@gentoo.org To: gentoo-dev@lists.gentoo.org Cc: David Seifert Subject: [gentoo-dev] [PATCH 2/2] cmake-utils.eclass: Enable BUILD_SHARED_LIBS by default in EAPI >= 7 Date: Thu, 26 Jul 2018 08:35:01 +0200 Message-Id: <20180726063501.18702-2-soap@gentoo.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180726063501.18702-1-soap@gentoo.org> References: <20180726063501.18702-1-soap@gentoo.org> 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 X-Archives-Salt: 6f319c24-8658-4016-a86e-d56f54231554 X-Archives-Hash: 8fd670ee2f38ce8fac699b01c9471c29 From: David Seifert * Many upstreams build static libraries by default, as this is simpler for distribution. Developers can still override this variable if required. Examples: https://github.com/pezmaster31/bamtools/blob/master/CMakeLists.txt#L64 --- eclass/cmake-utils.eclass | 1 + 1 file changed, 1 insertion(+) diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass index ed81426ddcc..f180c8c3d7d 100644 --- a/eclass/cmake-utils.eclass +++ b/eclass/cmake-utils.eclass @@ -623,6 +623,7 @@ cmake-utils_src_configure() { if [[ ${EAPI} != [56] ]]; then cat >> "${common_config}" <<- _EOF_ || die SET (CMAKE_INSTALL_DOCDIR "${EPREFIX}/usr/share/doc/${PF}" CACHE PATH "") + SET (BUILD_SHARED_LIBS ON CACHE BOOLEAN "") _EOF_ fi -- 2.18.0