Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Wed, 30 Nov 2016 09:42:27
Message-Id: 1480498929.c9b53dc891212694296acb0a4d131a1d31fa1f21.mgorny@gentoo
1 commit: c9b53dc891212694296acb0a4d131a1d31fa1f21
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 27 12:39:08 2016 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 30 09:42:09 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9b53dc8
7
8 cmake-utils.eclass: Declare CMAKE_GENTOO_BUILD
9
10 Declare the CMAKE_GENTOO_BUILD cache variable to indicate that a Gentoo
11 package build is being performed. This variable enables Gentoo code
12 paths in CMake modules without the necessity of setting a custom
13 CMAKE_BUILD_TYPE.
14
15 eclass/cmake-utils.eclass | 1 +
16 1 file changed, 1 insertion(+)
17
18 diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
19 index bf78cc3..fbd60c2 100644
20 --- a/eclass/cmake-utils.eclass
21 +++ b/eclass/cmake-utils.eclass
22 @@ -593,6 +593,7 @@ enable_cmake-utils_src_configure() {
23 local common_config=${BUILD_DIR}/gentoo_common_config.cmake
24 local libdir=$(get_libdir)
25 cat > "${common_config}" <<- _EOF_ || die
26 + SET (CMAKE_GENTOO_BUILD ON CACHE BOOL "Indicate Gentoo package build")
27 SET (LIB_SUFFIX ${libdir/lib} CACHE STRING "library path suffix" FORCE)
28 SET (CMAKE_INSTALL_LIBDIR ${libdir} CACHE PATH "Output directory for libraries")
29 _EOF_