1 |
commit: a3cf2369a989b6989b9db33a6ec45f2a675d4744 |
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: Sun Oct 7 18:36:43 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=a3cf2369 |
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 |
eclass/cmake-utils.eclass | 1 + |
18 |
1 file changed, 1 insertion(+) |
19 |
|
20 |
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass |
21 |
index a75574505c..527b26de80 100644 |
22 |
--- a/eclass/cmake-utils.eclass |
23 |
+++ b/eclass/cmake-utils.eclass |
24 |
@@ -630,6 +630,7 @@ cmake-utils_src_configure() { |
25 |
if [[ ${EAPI} != [56] ]]; then |
26 |
cat >> "${common_config}" <<- _EOF_ || die |
27 |
SET (CMAKE_INSTALL_DOCDIR "${EPREFIX}/usr/share/doc/${PF}" CACHE PATH "") |
28 |
+ SET (BUILD_SHARED_LIBS ON CACHE BOOLEAN "") |
29 |
_EOF_ |
30 |
fi |