diff options
author | Maks Orlovich <maksim@kde.org> | 2007-05-24 22:26:28 +0000 |
---|---|---|
committer | Maks Orlovich <maksim@kde.org> | 2007-05-24 22:26:28 +0000 |
commit | ca94885ece739ce74d2522803fb931c696985654 (patch) | |
tree | 64cb002954f8db0fbd3b5d15f12594267e34a54b | |
parent | 23687aab9c367ac600e03d7ab4dbe1bc644ce359 (diff) | |
download | extra-cmake-modules-ca94885ece739ce74d2522803fb931c696985654.tar.gz extra-cmake-modules-ca94885ece739ce74d2522803fb931c696985654.tar.bz2 |
Add a flag for building testregression and some build instructions.
Thanks to dfaure and tronical for helping me out with the build systems!
svn path=/trunk/KDE/kdelibs/; revision=668049
-rw-r--r-- | modules/FindKDE4Internal.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake index 9885774f..e3eb27d8 100644 --- a/modules/FindKDE4Internal.cmake +++ b/modules/FindKDE4Internal.cmake @@ -310,6 +310,7 @@ 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") +option(KDE4_BUILD_TESTREGRESSION "Build KHTML's testregression. Note: this disables hidden visibility") if( KDE4_ENABLE_FINAL) add_definitions(-DKDE_USE_FINAL) @@ -707,6 +708,11 @@ if (CMAKE_COMPILER_IS_GNUCXX) # visibility support check_cxx_compiler_flag(-fvisibility=hidden __KDE_HAVE_GCC_VISIBILITY) + # Disable it if testregression is built.. + if (KDE4_BUILD_TESTREGRESSION) + set (__KDE_HAVE_GCC_VISIBILITY 0) + endif (KDE4_BUILD_TESTREGRESSION) + # get the gcc version exec_program(${CMAKE_C_COMPILER} ARGS --version OUTPUT_VARIABLE _gcc_version_info) |