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