summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-10-27 14:38:38 +0000
committerMike Frysinger <vapier@gentoo.org>2008-10-27 14:38:38 +0000
commit0482cd45d534d9cd4dd0672a76c4b8d2ded77e8a (patch)
treea4813b60321f63bbcd0302e2c716fab311bdd8f5 /eclass
parentVersion bump to 1.4.8_pre3 (diff)
downloadgentoo-2-0482cd45d534d9cd4dd0672a76c4b8d2ded77e8a.tar.gz
gentoo-2-0482cd45d534d9cd4dd0672a76c4b8d2ded77e8a.tar.bz2
gentoo-2-0482cd45d534d9cd4dd0672a76c4b8d2ded77e8a.zip
allow build type to be overridden via $CMAKE_BUILD_TYPE
Diffstat (limited to 'eclass')
-rw-r--r--eclass/cmake-utils.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index b07a02e8e1f6..decc100be674 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.12 2008/10/27 05:36:02 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.13 2008/10/27 14:38:38 vapier Exp $
# @ECLASS: cmake-utils.eclass
# @MAINTAINER:
@@ -146,7 +146,7 @@ cmake-utils_src_configureout() {
_common_configure_code() {
local tmp_libdir=$(get_libdir)
# CMAKE_BUILD_TYPE only modifies compiler flags, so set to None
- echo -DCMAKE_BUILD_TYPE=None
+ echo -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE:-None}
echo -DCMAKE_C_COMPILER=$(type -P $(tc-getCC))
echo -DCMAKE_CXX_COMPILER=$(type -P $(tc-getCXX))
echo -DCMAKE_INSTALL_PREFIX=${PREFIX:-/usr}