Gentoo Archives: gentoo-dev

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] [PATCH v2 3/4] cmake.eclass: Enable CMAKE_INSTALL_ALWAYS
Date: Wed, 01 Sep 2021 18:00:04
Message-Id: 2552216.lGaqSPkdTl@tuxbrain
In Reply to: [gentoo-dev] [PATCH v2 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 7a8059ba071..4203b9364cc 100644
9 --- a/eclass/cmake.eclass
10 +++ b/eclass/cmake.eclass
11 @@ -535,6 +535,11 @@ cmake_src_configure() {
12 echo 'set(CMAKE_COLOR_MAKEFILE OFF CACHE BOOL "pretty colors during make" FORCE)' >> "${common_config}" || die
13 fi
14
15 + # See bug 735820
16 + if [[ ${EAPI} != 7 ]]; then
17 + echo 'set(CMAKE_INSTALL_ALWAYS 1)' >> "${common_config}" || die
18 + fi
19 +
20 # Wipe the default optimization flags out of CMake
21 if [[ ${CMAKE_BUILD_TYPE} != Gentoo ]]; then
22 cat >> ${common_config} <<- _EOF_ || die
23 --
24 2.33.0

Attachments

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

Replies