summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2014-12-18 16:39:08 +0000
committerMichael Palimaka <kensington@gentoo.org>2014-12-18 16:39:08 +0000
commit948496adfbe3dae4d21c179085aaa8de658fd6e6 (patch)
treec0af074baa29e9276ca38f3c73f831c2111ff000 /eclass/cmake-utils.eclass
parentVersion bump. Cleanup old. (diff)
downloadgentoo-2-948496adfbe3dae4d21c179085aaa8de658fd6e6.tar.gz
gentoo-2-948496adfbe3dae4d21c179085aaa8de658fd6e6.tar.bz2
gentoo-2-948496adfbe3dae4d21c179085aaa8de658fd6e6.zip
Declare local CPPFLAGS to avoid multiple appends in cmake-multilib.
Diffstat (limited to 'eclass/cmake-utils.eclass')
-rw-r--r--eclass/cmake-utils.eclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index 07f9b635149f..04c1c4808081 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.112 2014/10/27 09:49:05 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.113 2014/12/18 16:39:08 kensington Exp $
# @ECLASS: cmake-utils.eclass
# @MAINTAINER:
@@ -450,6 +450,7 @@ enable_cmake-utils_src_configure() {
if [[ ${CMAKE_BUILD_TYPE} = Gentoo ]]; then
# Handle release builds
if ! has debug ${IUSE//+} || ! use debug; then
+ local CPPFLAGS=${CPPFLAGS}
append-cppflags -DNDEBUG
fi
fi