diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index 1639db5..2fa225d 100644 --- a/modules/TDEMacros.cmake +++ b/modules/TDEMacros.cmake @@ -2932,7 +2932,7 @@ endmacro( ) ##### 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 ) tde_message_fatal( "gcc visibility support was requested, but your system is not *NIX" ) endif( NOT UNIX ) @@ -2961,7 +2961,7 @@ macro( tde_setup_gcc_visibility ) tde_save_and_set( CMAKE_REQUIRED_INCLUDES "${TDE_INCLUDE_DIR}" ) check_cxx_source_compiles( " #include <${TDEMACROS_H}> - #ifndef __KDE_HAVE_GCC_VISIBILITY + #ifndef __TDE_HAVE_GCC_VISIBILITY #error gcc visibility is not enabled in tdelibs #endif int main() { return 0; } " @@ -2974,6 +2974,7 @@ macro( tde_setup_gcc_visibility ) endif( ) 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( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden") set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")