Gentoo Archives: gentoo-dev

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] [PATCH 3/4] cmake.eclass: Enable CMAKE_INSTALL_ALWAYS
Date: Thu, 19 Aug 2021 17:46:19
Message-Id: 4159976.UPlyArG6xL@tuxbrain
In Reply to: [gentoo-dev] [PATCH 2/4] cmake.eclass: Enforce CMAKE_REMOVE_MODULES_LIST be an array by Andreas Sturmlechner
1 Bug: https://bugs.gentoo.org/735820
2 Signed-off-by: Andreas Sturmlechner <asturm@g.o>
3 ---
4 eclass/cmake.eclass | 5 +++++
5 1 file changed, 5 insertions(+)
6
7 diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass
8 index 3c611071821..8befd9e5a9f 100644
9 --- a/eclass/cmake.eclass
10 +++ b/eclass/cmake.eclass
11 @@ -537,6 +537,11 @@ cmake_src_configure() {
12 echo 'set(CMAKE_COLOR_MAKEFILE OFF CACHE BOOL "pretty colors
13 during make" FORCE)' >> "${common_config}" || die
14 fi
15
16 + # See bug 735820
17 + if [[ ${EAPI} != 7 ]]; then
18 + echo 'set(CMAKE_INSTALL_ALWAYS 1)' >> "${common_config}" || die
19 + fi
20 +
21 # Wipe the default optimization flags out of CMake
22 if [[ ${CMAKE_BUILD_TYPE} != Gentoo ]]; then
23 cat >> ${common_config} <<- _EOF_ || die
24 --
25 2.33.0

Attachments

File name MIME type
signature.asc application/pgp-signature