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-12 20:44:27 +0900
commit713b969b4e31fc633339973d224ac4d826426d87 (patch)
tree5029ace6dbe1bfd6956df4000cdfc6d20f111008
parent03a1c2f4fd4e105a2780c6553a8f72ec1b9e1555 (diff)
downloadtde-cmake-713b969b4e31fc633339973d224ac4d826426d87.tar.gz
tde-cmake-713b969b4e31fc633339973d224ac4d826426d87.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> (cherry picked from commit 97b64cc430101b2dca30c5bdb1577f2ce142ffce)
-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")