aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndreas Pakulat <apaku@gmx.de>2008-07-19 10:28:45 +0000
committerAndreas Pakulat <apaku@gmx.de>2008-07-19 10:28:45 +0000
commitc0c1c612fb548a668664dc380a3b9b75db75283e (patch)
treeb27d96da3d5997e71ce3d400b99ce3e7ed05f4f4 /modules
parent9c7f54bcfd27f0299fff56cdeff76d6e6894d36d (diff)
downloadextra-cmake-modules-c0c1c612fb548a668664dc380a3b9b75db75283e.tar.gz
extra-cmake-modules-c0c1c612fb548a668664dc380a3b9b75db75283e.tar.bz2
automatically merged revision 834533:
Explain the various build types that KDE4 supports and add Debugfull to the build configuration types for CMake > 2.5 svn path=/branches/KDE/4.1/kdelibs/; revision=834621
Diffstat (limited to 'modules')
-rw-r--r--modules/FindKDE4Internal.cmake31
1 files changed, 30 insertions, 1 deletions
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake
index 83213217..2f589598 100644
--- a/modules/FindKDE4Internal.cmake
+++ b/modules/FindKDE4Internal.cmake
@@ -199,6 +199,27 @@
# _KDE4_PLATFORM_INCLUDE_DIRS is used only internally
# _KDE4_PLATFORM_DEFINITIONS is used only internally
+# Note on the possible values for CMAKE_BUILD_TYPE and how KDE handles
+# the flags for those buildtypes. FindKDE4Internal supports the values
+# Debug, Release, Relwithdebinfo, Profile and Debugfull
+#
+# Release
+# optimised for speed, qDebug/kDebug turned off, no debug symbols
+# Release with debug info
+# optimised for speed, debugging symbols on (-g)
+# Debug
+# optimised but debuggable, debugging on (-g)
+# (-fno-reorder-blocks -fno-schedule-insns -fno-inline)
+# DebugFull
+# no optimisation, full debugging on (-g3)
+# Profile
+# DebugFull + -ftest-coverage -fprofile-arcs
+#
+# It is expected that the "Debug" build type be still debuggable with gdb
+# without going all over the place, but still produce better performance.
+# It's also important to note that gcc cannot detect all warning conditions
+# unless the optimiser is active.
+
# Copyright (c) 2006-2008, Alexander Neundorf <neundorf@kde.org>
# Copyright (c) 2006, Laurent Montel, <montel@kde.org>
#
@@ -360,7 +381,6 @@ else (_kdeBootStrapping)
find_library(KDE4_KDEUI_LIBRARY NAMES kdeui PATHS ${KDE4_LIB_INSTALL_DIR} NO_DEFAULT_PATH )
set(KDE4_KDEUI_LIBS ${kdeui_LIB_DEPENDS} ${KDE4_KDEUI_LIBRARY} )
-
find_library(KDE4_KIO_LIBRARY NAMES kio PATHS ${KDE4_LIB_INSTALL_DIR} NO_DEFAULT_PATH )
set(KDE4_KIO_LIBS ${kio_LIB_DEPENDS} ${KDE4_KIO_LIBRARY} )
@@ -897,6 +917,10 @@ endif(MSVC)
if (CMAKE_COMPILER_IS_GNUCXX)
+ if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" GREATER 2.6)
+ set (CMAKE_CONFIGURATION_TYPES ${CMAKE_CONFIGURATION_TYPES} "Debugfull")
+ endif("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" GREATER 2.6)
+
set (KDE4_ENABLE_EXCEPTIONS -fexceptions)
# Select flags.
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g")
@@ -1003,6 +1027,11 @@ endif (CMAKE_COMPILER_IS_GNUCXX)
if (CMAKE_C_COMPILER MATCHES "icc")
+
+ if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" GREATER 2.6)
+ set (CMAKE_CONFIGURATION_TYPES ${CMAKE_CONFIGURATION_TYPES} "Debugfull")
+ endif("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" GREATER 2.6)
+
set (KDE4_ENABLE_EXCEPTIONS -fexceptions)
# Select flags.
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g")