@ -2932,7 +2932,7 @@ endmacro( )
# # # # # t d e _ s e t u p _ g c c _ v i s i b i l i t y
# # # # # t d e _ s e t u p _ g c c _ v i s i b i l i t y
macro ( tde_setup_gcc_visibility )
macro ( tde_setup_gcc_visibility )
if ( NOT DEFINED __ K DE_HAVE_GCC_VISIBILITY )
if ( NOT DEFINED __ T DE_HAVE_GCC_VISIBILITY )
if ( NOT UNIX )
if ( NOT UNIX )
tde_message_fatal ( "gcc visibility support was requested, but your system is not *NIX" )
tde_message_fatal ( "gcc visibility support was requested, but your system is not *NIX" )
endif ( NOT UNIX )
endif ( NOT UNIX )
@ -2961,7 +2961,7 @@ macro( tde_setup_gcc_visibility )
tde_save_and_set ( CMAKE_REQUIRED_INCLUDES "${TDE_INCLUDE_DIR}" )
tde_save_and_set ( CMAKE_REQUIRED_INCLUDES "${TDE_INCLUDE_DIR}" )
check_cxx_source_compiles ( "
check_cxx_source_compiles ( "
# i n c l u d e < $ { T D E M A C R O S _ H } >
# i n c l u d e < $ { T D E M A C R O S _ H } >
# i f n d e f _ _ K D E _ H A V E _ G C C _ V I S I B I L I T Y
# i f n d e f _ _ T D E _ H A V E _ G C C _ V I S I B I L I T Y
# e r r o r g c c v i s i b i l i t y i s n o t e n a b l e d i n t d e l i b s
# e r r o r g c c v i s i b i l i t y i s n o t e n a b l e d i n t d e l i b s
# e n d i f
# e n d i f
i n t main ( ) { r e t u r n 0 ; } "
i n t main ( ) { r e t u r n 0 ; } "
@ -2974,6 +2974,7 @@ macro( tde_setup_gcc_visibility )
endif ( )
endif ( )
endif ( TDE_FOUND AND NOT DEFINED HAVE_TDE_VISIBILITY )
endif ( TDE_FOUND AND NOT DEFINED HAVE_TDE_VISIBILITY )
set ( __TDE_HAVE_GCC_VISIBILITY 1 CACHE INTERNAL "" )
set ( __KDE_HAVE_GCC_VISIBILITY 1 CACHE INTERNAL "" )
set ( __KDE_HAVE_GCC_VISIBILITY 1 CACHE INTERNAL "" )
set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden" )
set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden" )
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden" )
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden" )