Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Mon, 10 Dec 2018 21:54:44
Message-Id: 1544478847.e4df47d60417b51aaf1cc526c124a21252d4fefe.asturm@gentoo
1 commit: e4df47d60417b51aaf1cc526c124a21252d4fefe
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 15 00:03:03 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 10 21:54:07 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4df47d6
7
8 cmake-utils.eclass: Enable BUILD_SHARED_LIBS by default in EAPI >= 7
9
10 * Many upstreams build static libraries by default, as this is
11 simpler for distribution. Developers can still override this
12 variable if required.
13
14 Examples:
15 https://github.com/pezmaster31/bamtools/blob/master/CMakeLists.txt#L64
16
17 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
18
19 eclass/cmake-utils.eclass | 1 +
20 1 file changed, 1 insertion(+)
21
22 diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
23 index 30ee97b99a3..43397aad8c2 100644
24 --- a/eclass/cmake-utils.eclass
25 +++ b/eclass/cmake-utils.eclass
26 @@ -630,6 +630,7 @@ cmake-utils_src_configure() {
27 if [[ ${EAPI} != [56] ]]; then
28 cat >> "${common_config}" <<- _EOF_ || die
29 SET (CMAKE_INSTALL_DOCDIR "${EPREFIX}/usr/share/doc/${PF}" CACHE PATH "")
30 + SET (BUILD_SHARED_LIBS ON CACHE BOOLEAN "")
31 _EOF_
32 fi