commit:     e4df47d60417b51aaf1cc526c124a21252d4fefe
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: Mon Dec 10 21:54:07 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4df47d6

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

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 eclass/cmake-utils.eclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index 30ee97b99a3..43397aad8c2 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
 

Reply via email to