summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-02-01 17:15:04 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-02-04 01:22:53 +0100
commit9a394bb261926a6ef9e8a5155c2ebe70261affe3 (patch)
tree2d1222d1777c9c668596c42080c23a435da94498
parent22189b6d305e07c67a4d6556e660605289789019 (diff)
downloadtdebase-9a394bb261926a6ef9e8a5155c2ebe70261affe3.tar.gz
tdebase-9a394bb261926a6ef9e8a5155c2ebe70261affe3.zip
Use common GCC visibility test.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--ConfigureChecks.cmake22
1 files changed, 1 insertions, 21 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index e480dc53a..0025027d9 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -128,29 +128,9 @@ endif( )
##### check for gcc visibility support #########
-# FIXME
-# This should check for [T]Qt3 visibility support
if( WITH_GCC_VISIBILITY )
- if( NOT UNIX )
- tde_message_fatal( "gcc visibility support was requested, but your system is not *NIX" )
- endif( NOT UNIX )
- tde_save_and_set( CMAKE_REQUIRED_INCLUDES "${TDE_INCLUDE_DIR}" )
- check_cxx_source_compiles( "
- #include <kdemacros.h>
- #ifndef __KDE_HAVE_GCC_VISIBILITY
- #error gcc visibility is not enabled in tdelibs
- #endif
- int main() { return 0; } "
- HAVE_GCC_VISIBILITY
- )
- tde_restore( CMAKE_REQUIRED_INCLUDES )
- if( NOT HAVE_GCC_VISIBILITY )
- tde_message_fatal( "gcc visibility support was requested, but not supported in tdelibs" )
- endif( NOT HAVE_GCC_VISIBILITY )
- set( __KDE_HAVE_GCC_VISIBILITY 1 )
- set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
- set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
+ tde_setup_gcc_visibility( )
endif( )