summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-07-11 11:36:46 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-07-11 11:36:46 +0900
commit97b64cc430101b2dca30c5bdb1577f2ce142ffce (patch)
treecbe9b3e1b1ef24740c4bc63e855a6af15cbf3169
parente875dd8b52c352596ffe5a8a9e33005339646165 (diff)
downloadtde-cmake-97b64cc430101b2dca30c5bdb1577f2ce142ffce.tar.gz
tde-cmake-97b64cc430101b2dca30c5bdb1577f2ce142ffce.zip
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>
-rw-r--r--modules/TDEMacros.cmake5
1 files changed, 3 insertions, 2 deletions
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")