Rename __KDE_HAVE_GCC_VISIBILITY to __TDE_HAVE_GCC_VISIBILITY. Temporarily __KDE_HAVE_GCC_VISIBILITY is still provided, till renaming on all TDE code base is completed.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/112/head
Michele Calgaro 4 months ago
parent e875dd8b52
commit 97b64cc430
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -2932,7 +2932,7 @@ endmacro( )
##### tde_setup_gcc_visibility ##### tde_setup_gcc_visibility
macro( tde_setup_gcc_visibility ) macro( tde_setup_gcc_visibility )
if( NOT DEFINED __KDE_HAVE_GCC_VISIBILITY ) if( NOT DEFINED __TDE_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( "
#include <${TDEMACROS_H}> #include <${TDEMACROS_H}>
#ifndef __KDE_HAVE_GCC_VISIBILITY #ifndef __TDE_HAVE_GCC_VISIBILITY
#error gcc visibility is not enabled in tdelibs #error gcc visibility is not enabled in tdelibs
#endif #endif
int main() { return 0; } " int main() { return 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")

Loading…
Cancel
Save