summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eclass/cmake-utils.eclass8
-rw-r--r--eclass/kde4-base.eclass13
2 files changed, 9 insertions, 12 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index a77396f1b19..9db9ec80bd9 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -281,11 +281,9 @@ enable_cmake-utils_src_configure() {
# @SEE CMAKE_BUILD_TYPE
if [[ ${CMAKE_BUILD_TYPE} = Gentoo ]]; then
- # Handle debug and release codepaths
- if has debug ${IUSE//+} && use debug; then
- append-cppflags -DDEBUG
- else
- append-cppflags -DNDEBUG -DQT_NO_DEBUG -DQT_NO_DEBUG_STREAM
+ # Handle release builds
+ if ! has debug ${IUSE//+} || ! use debug; then
+ append-cppflags -DNDEBUG
fi
fi
diff --git a/eclass/kde4-base.eclass b/eclass/kde4-base.eclass
index 7307733ae34..f198c5dcc6c 100644
--- a/eclass/kde4-base.eclass
+++ b/eclass/kde4-base.eclass
@@ -626,13 +626,12 @@ kde4-base_src_configure() {
cmakeargs+=(-DKDE4_ENABLE_FINAL=ON)
fi
- if [[ ${CMAKE_BUILD_TYPE} = Gentoo ]]; then
- # Handle debug and release codepaths
- if has debug ${IUSE//+} && use debug; then
- append-cppflags -DDEBUG
- else
- append-cppflags -DNDEBUG -DQT_NO_DEBUG -DQT_NO_DEBUG_STREAM
- fi
+ if has debug ${IUSE//+} && use debug; then
+ # Set "real" debug mode
+ CMAKE_BUILD_TYPE="Debugfull"
+ else
+ # Handle common release builds
+ append-cppflags -DQT_NO_DEBUG
fi
# Set distribution name