commit: a3cf2369a989b6989b9db33a6ec45f2a675d4744 Author: David Seifert <soap <AT> gentoo <DOT> org> AuthorDate: Sun Jul 15 00:03:03 2018 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Sun Oct 7 18:36:43 2018 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=a3cf2369
cmake-utils.eclass: Enable BUILD_SHARED_LIBS by default in EAPI >= 7 * 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 a75574505c..527b26de80 100644 --- a/eclass/cmake-utils.eclass +++ b/eclass/cmake-utils.eclass @@ -630,6 +630,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
