summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-10-27 05:06:41 +0000
committerMike Frysinger <vapier@gentoo.org>2008-10-27 05:06:41 +0000
commit05a51351d90b55d4b15722cd4357ecb29eda8ec4 (patch)
tree7f5ca81ad18f22f2342b03344cff8f40a13e0609 /eclass/cmake-utils.eclass
parentFix by Nathan Brink to pull in stdint.h for uint64_t types #237600. (diff)
downloadhistorical-05a51351d90b55d4b15722cd4357ecb29eda8ec4.tar.gz
historical-05a51351d90b55d4b15722cd4357ecb29eda8ec4.tar.bz2
historical-05a51351d90b55d4b15722cd4357ecb29eda8ec4.zip
set threading type to win32 for ming targets #242344 by cJ
Diffstat (limited to 'eclass/cmake-utils.eclass')
-rw-r--r--eclass/cmake-utils.eclass13
1 files changed, 7 insertions, 6 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index a5729a5eba74..a67a348f22ba 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.10 2008/09/28 18:52:16 jmbsvicetto Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.11 2008/10/27 05:06:41 vapier Exp $
# @ECLASS: cmake-utils.eclass
# @MAINTAINER:
@@ -85,6 +85,10 @@ cmake-utils_has() { _use_me_now HAVE "$@" ; }
cmake-utils_src_configure() {
debug-print-function $FUNCNAME $*
+ if has debug ${IUSE//+} && use debug ; then
+ append-cppflags -DNDEBUG
+ fi
+
if [[ -n "${CMAKE_IN_SOURCE_BUILD}" ]]; then
cmake-utils_src_configurein
else
@@ -141,11 +145,8 @@ cmake-utils_src_configureout() {
# Internal use only. Common configuration options for all types of builds.
_common_configure_code() {
local tmp_libdir=$(get_libdir)
- if has debug ${IUSE//+} && use debug; then
- echo -DCMAKE_BUILD_TYPE=Debug
- else
- echo -DCMAKE_BUILD_TYPE=Release
- fi
+ # CMAKE_BUILD_TYPE only modifies compiler flags, so set to None
+ echo -DCMAKE_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}