From 2e1cbff1c03bc1f8d7911816aa2c4e9e14bce35a Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Mon, 16 Oct 2006 11:32:23 +0000 Subject: Generic method for define KDE_USE_FINAL as discussed with David svn path=/trunk/KDE/kdelibs/; revision=595984 --- modules/FindKDE4Internal.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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. -- cgit v1.2.1