@ -1869,6 +1869,7 @@ macro( tde_setup_gcc_visibility )
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 )
if ( TQT_FOUND )
find_library ( TQT_LIBFILE tqt-mt HINTS "${TQT_LIBRARY_DIRS}" )
find_library ( TQT_LIBFILE tqt-mt HINTS "${TQT_LIBRARY_DIRS}" )
if ( NOT "${TQT_LIBFILE}" STREQUAL "TQT_LIBFILE-NOTFOUND" )
if ( NOT "${TQT_LIBFILE}" STREQUAL "TQT_LIBFILE-NOTFOUND" )
message ( STATUS "Performing Test HAVE_TQT_VISIBILITY" )
message ( STATUS "Performing Test HAVE_TQT_VISIBILITY" )
@ -1877,18 +1878,20 @@ macro( tde_setup_gcc_visibility )
O U T P U T _ V A R I A B L E H A V E _ T Q T _ V I S I B I L I T Y
O U T P U T _ V A R I A B L E H A V E _ T Q T _ V I S I B I L I T Y
)
)
if ( "${HAVE_TQT_VISIBILITY}" STREQUAL "" OR
if ( "${HAVE_TQT_VISIBILITY}" STREQUAL "" OR
" $ { H A V E _ T Q T _ V I S I B I L I T Y } " M A T C H E S " DE F A U L T [ ^ \ n ] * Q S e t t i n g s P r i v a t e " )
" $ { H A V E _ T Q T _ V I S I B I L I T Y } " M A T C H E S " GL O B A L [ \ t ] + DE F A U L T [ ^ \ n ] + Q S e t t i n g s P r i v a t e " )
message ( STATUS "Performing Test HAVE_TQT_VISIBILITY - Failed" )
message ( STATUS "Performing Test HAVE_TQT_VISIBILITY - Failed" )
tde_message_fatal ( "gcc visibility support was requested, but not supported in tqt library" )
tde_message_fatal ( "gcc visibility support was requested, but not supported in tqt library" )
endif ( )
endif ( )
message ( STATUS "Performing Test HAVE_TQT_VISIBILITY - Success" )
message ( STATUS "Performing Test HAVE_TQT_VISIBILITY - Success" )
endif ( )
endif ( )
endif ( TQT_FOUND )
if ( TDE_FOUND )
find_file ( TDEMACROS_H kdemacros.h HINTS "${TDE_INCLUDE_DIR}" )
find_file ( TDEMACROS_H kdemacros.h HINTS "${TDE_INCLUDE_DIR}" )
if ( NOT "${TDEMACROS_H}" STREQUAL "TDEMACROS_H-NOTFOUND" )
if ( NOT "${TDEMACROS_H}" STREQUAL "TDEMACROS_H-NOTFOUND" )
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 < kd 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 _ _ K 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
@ -1900,6 +1903,7 @@ macro( tde_setup_gcc_visibility )
tde_message_fatal ( "gcc visibility support was requested, but not supported in tdelibs" )
tde_message_fatal ( "gcc visibility support was requested, but not supported in tdelibs" )
endif ( NOT HAVE_TDE_VISIBILITY )
endif ( NOT HAVE_TDE_VISIBILITY )
endif ( )
endif ( )
endif ( TDE_FOUND )
set ( __KDE_HAVE_GCC_VISIBILITY 1 )
set ( __KDE_HAVE_GCC_VISIBILITY 1 )
set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden" )
set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden" )