Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: eclass/
Date: Sat, 21 Aug 2021 13:11:37
Message-Id: 1629551411.c4a09deca98a78649976f966fd6e8489e041e64c.asturm@gentoo
1 commit: c4a09deca98a78649976f966fd6e8489e041e64c
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 16 19:31:36 2021 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 21 13:10:11 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=c4a09dec
7
8 cmake.eclass: Enable CMAKE_INSTALL_ALWAYS
9
10 Bug: https://bugs.gentoo.org/735820
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 eclass/cmake.eclass | 5 +++++
14 1 file changed, 5 insertions(+)
15
16 diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass
17 index 3c61107182..8befd9e5a9 100644
18 --- a/eclass/cmake.eclass
19 +++ b/eclass/cmake.eclass
20 @@ -537,6 +537,11 @@ cmake_src_configure() {
21 echo 'set(CMAKE_COLOR_MAKEFILE OFF CACHE BOOL "pretty colors during make" FORCE)' >> "${common_config}" || die
22 fi
23
24 + # See bug 735820
25 + if [[ ${EAPI} != 7 ]]; then
26 + echo 'set(CMAKE_INSTALL_ALWAYS 1)' >> "${common_config}" || die
27 + fi
28 +
29 # Wipe the default optimization flags out of CMake
30 if [[ ${CMAKE_BUILD_TYPE} != Gentoo ]]; then
31 cat >> ${common_config} <<- _EOF_ || die