diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-10-27 14:38:38 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-10-27 14:38:38 +0000 |
commit | 0b527cd0a7f08328a3514f4fb174beb018265824 (patch) | |
tree | 76bfd5103cb36895a04dc6a1301376d7f3eee6e2 /eclass/cmake-utils.eclass | |
parent | Version bump to 1.4.8_pre3 (diff) | |
download | historical-0b527cd0a7f08328a3514f4fb174beb018265824.tar.gz historical-0b527cd0a7f08328a3514f4fb174beb018265824.tar.bz2 historical-0b527cd0a7f08328a3514f4fb174beb018265824.zip |
allow build type to be overridden via $CMAKE_BUILD_TYPE
Diffstat (limited to 'eclass/cmake-utils.eclass')
-rw-r--r-- | eclass/cmake-utils.eclass | 4 |
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} |