aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorLaurent Montel <montel@kde.org>2006-10-16 11:32:23 +0000
committerLaurent Montel <montel@kde.org>2006-10-16 11:32:23 +0000
commit2e1cbff1c03bc1f8d7911816aa2c4e9e14bce35a (patch)
treecd720986acfa4d2d8ecaecbf5519bb2f1115fe72 /modules
parent53f310f20eb5609c9473f43c56eee247229e6f15 (diff)
downloadextra-cmake-modules-2e1cbff1c03bc1f8d7911816aa2c4e9e14bce35a.tar.gz
extra-cmake-modules-2e1cbff1c03bc1f8d7911816aa2c4e9e14bce35a.tar.bz2
Generic method for define KDE_USE_FINAL as discussed with David
svn path=/trunk/KDE/kdelibs/; revision=595984
Diffstat (limited to 'modules')
-rw-r--r--modules/FindKDE4Internal.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake
index 02c9ab0a..a313d2c1 100644
--- a/modules/FindKDE4Internal.cmake
+++ b/modules/FindKDE4Internal.cmake
@@ -203,7 +203,6 @@ find_package(Perl REQUIRED)
include (MacroLibrary)
include (CheckCXXCompilerFlag)
-
#add some KDE specific stuff
# the following are directories where stuff will be installed to
@@ -283,6 +282,10 @@ get_filename_component( kde_cmake_module_dir ${CMAKE_CURRENT_LIST_FILE} PATH)
option(KDE4_ENABLE_FINAL "Enable final all-in-one compilation")
option(KDE4_BUILD_TESTS "Build the tests")
+if( KDE4_ENABLE_FINAL)
+ add_definitions(-DKDE_USE_FINAL)
+endif(KDE4_ENABLE_FINAL)
+
#Position-Independent-Executable is a feature of Binutils, Libc, and GCC that creates an executable
#which is something between a shared library and a normal executable.
#Programs compiled with these features appear as ?shared object? with the file command.