From 676e746b78d8b6ada47dd15fd706d0deb9996e45 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Tue, 7 Jan 2014 16:56:14 +0000 Subject: Remove use of obsolete add_compiler_export_flags Set CMAKE_CXX_VISIBILITY_PRESET and CMAKE_VISIBILITY_INLINES instead (which sets the default for all targets). Note that the removal of include(GenerateExportHeader) means that this will have to be explicitly included in the CMakeLists.txt of the frameworks (as they use generate_export_header). REVIEW: 114898 --- kde-modules/KDECompilerSettings.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kde-modules/KDECompilerSettings.cmake b/kde-modules/KDECompilerSettings.cmake index cb255f67..cd93e519 100644 --- a/kde-modules/KDECompilerSettings.cmake +++ b/kde-modules/KDECompilerSettings.cmake @@ -10,7 +10,6 @@ # include(CheckCXXCompilerFlag) -include(GenerateExportHeader) # TODO: what's up with this manifest stuff ? # setting the CMAKE_MODULE_PATH like this is definitely wrong. @@ -286,7 +285,8 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel") endif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel") -add_compiler_export_flags() # from GenerateExportHeader.cmake +set(CMAKE_CXX_VISIBILITY_PRESET hidden) +set(CMAKE_VISIBILITY_INLINES_HIDDEN 1) add_definitions(${_KDE4_PLATFORM_DEFINITIONS}) -- cgit v1.2.1