[kdelibs/frameworks] tier4/kde4support/src: Check for visibility support on gcc
Aurélien Gâteau
agateau at kde.org
Thu Nov 28 17:03:04 UTC 2013
Git commit 3bc8af3ec4477b5ff7acedd74b27d0d359e8bd1f by Aurélien Gâteau.
Committed on 28/11/2013 at 17:02.
Pushed by gateau into branch 'frameworks'.
Check for visibility support on gcc
__KDE_HAVE_GCC_VISIBILITY was not defined in kdemacros.h.cmake, causing
KDE_EXPORT and KDE_IMPORT to be no-ops, breaking builds of kde-runtime,
kde-workspace and friends.
Don't know what to do for other compilers.
CCMAIL:kde-frameworks-devel at kde.org
M +3 -0 tier4/kde4support/src/CMakeLists.txt
http://commits.kde.org/kdelibs/3bc8af3ec4477b5ff7acedd74b27d0d359e8bd1f
diff --git a/tier4/kde4support/src/CMakeLists.txt b/tier4/kde4support/src/CMakeLists.txt
index 2a76eda..81fd2a5 100644
--- a/tier4/kde4support/src/CMakeLists.txt
+++ b/tier4/kde4support/src/CMakeLists.txt
@@ -246,6 +246,9 @@ configure_file(kdecore/config-klockfile.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/conf
# Generate config-kstandarddirs.h
configure_file(config-kstandarddirs.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kstandarddirs.h )
+if (CMAKE_COMPILER_IS_GNUCXX)
+ check_cxx_compiler_flag(-fvisibility=hidden __KDE_HAVE_GCC_VISIBILITY)
+endif (CMAKE_COMPILER_IS_GNUCXX)
configure_file(kdemacros.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/kdemacros.h )
add_library(KDE4Support ${libkde4support_SRCS})
More information about the Kde-frameworks-devel
mailing list