Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: cmake-utils.eclass
Date: Mon, 27 Oct 2008 14:38:40
Message-Id: E1KuTEs-0005Yy-8z@stork.gentoo.org
1 vapier 08/10/27 14:38:38
2
3 Modified: cmake-utils.eclass
4 Log:
5 allow build type to be overridden via $CMAKE_BUILD_TYPE
6
7 Revision Changes Path
8 1.13 eclass/cmake-utils.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/cmake-utils.eclass?rev=1.13&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/cmake-utils.eclass?rev=1.13&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/cmake-utils.eclass?r1=1.12&r2=1.13
13
14 Index: cmake-utils.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v
17 retrieving revision 1.12
18 retrieving revision 1.13
19 diff -u -r1.12 -r1.13
20 --- cmake-utils.eclass 27 Oct 2008 05:36:02 -0000 1.12
21 +++ cmake-utils.eclass 27 Oct 2008 14:38:38 -0000 1.13
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2007 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.12 2008/10/27 05:36:02 vapier Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.13 2008/10/27 14:38:38 vapier Exp $
27
28 # @ECLASS: cmake-utils.eclass
29 # @MAINTAINER:
30 @@ -146,7 +146,7 @@
31 _common_configure_code() {
32 local tmp_libdir=$(get_libdir)
33 # CMAKE_BUILD_TYPE only modifies compiler flags, so set to None
34 - echo -DCMAKE_BUILD_TYPE=None
35 + echo -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE:-None}
36 echo -DCMAKE_C_COMPILER=$(type -P $(tc-getCC))
37 echo -DCMAKE_CXX_COMPILER=$(type -P $(tc-getCXX))
38 echo -DCMAKE_INSTALL_PREFIX=${PREFIX:-/usr}