KDE/kdelibs/cmake/modules
Alexander Neundorf
neundorf at kde.org
Mon Dec 15 23:19:48 CET 2008
SVN commit 897386 by neundorf:
-unconditionally enable the reduced link interface
I checked that all modules (except extragear, review, playground, kwebdev) link on my machine, which means it can still break on other configurations.
Alex
CCMAIL: kde-buildsystem at kde.org
CCMAIL: mueller at kde.org
CCMAIL: Sune at vuorela.dk
CCMAIL: modestas at vainius.eu
M +17 -12 FindKDE4Internal.cmake
M +2 -5 KDE4Macros.cmake
--- trunk/KDE/kdelibs/cmake/modules/FindKDE4Internal.cmake #897385:897386
@@ -603,21 +603,26 @@
endif(${CMAKE_VERSION_MAJOR}.${CMAKE_VERSION_MINOR}.${CMAKE_VERSION_PATCH} VERSION_GREATER 2.6.2)
-# This is for the reduced link interface.
-# In kdelibs it is already alwaysenabled.
-# In all other modules provide the switch _KDE4_USE_REDUCED_LINK_INTERFACE to turn it on.
-if(kdelibs_SOURCE_DIR)
- set(KDE4_ENABLE_EXPERIMENTAL_LIB_EXPORT TRUE)
-else(kdelibs_SOURCE_DIR)
- option(KDE4_ENABLE_EXPERIMENTAL_LIB_EXPORT "Enable the reduced link interface" OFF)
-endif(kdelibs_SOURCE_DIR)
+# This is obsolete now. I just keep it here so in case somebody stumbles upon it somewhere
+# he can still find a hint where it came from and what it was good for.
+#
+# What to do in that case ? Just remove it. Alex
+#
+# # This is for the reduced link interface.
+# # In kdelibs it is already alwaysenabled.
+# # In all other modules provide the switch _KDE4_USE_REDUCED_LINK_INTERFACE to turn it on.
+# if(kdelibs_SOURCE_DIR)
+# set(KDE4_ENABLE_EXPERIMENTAL_LIB_EXPORT TRUE)
+# else(kdelibs_SOURCE_DIR)
+# option(KDE4_ENABLE_EXPERIMENTAL_LIB_EXPORT "Enable the reduced link interface" OFF)
+# endif(kdelibs_SOURCE_DIR)
+#
+# # Setting the target property LINK_INTERFACE_LIBRARIES directly shouldn't be done,
+# # instead TARGET_LINK_LIBRARIES(... LINK_INTERFACE_LIBRARIES ... ) must be used.
+# set(KDE4_DISABLE_PROPERTY_ "DISABLED_")
-# Setting the target property LINK_INTERFACE_LIBRARIES directly shouldn't be done,
-# instead TARGET_LINK_LIBRARIES(... LINK_INTERFACE_LIBRARIES ... ) must be used.
-set(KDE4_DISABLE_PROPERTY_ "DISABLED_")
-
if( KDE4_ENABLE_FINAL)
add_definitions(-DKDE_USE_FINAL)
endif(KDE4_ENABLE_FINAL)
--- trunk/KDE/kdelibs/cmake/modules/KDE4Macros.cmake #897385:897386
@@ -861,17 +861,14 @@
set(_symbol "MAKE_${_symbol}_LIB")
set_target_properties(${_target_NAME} PROPERTIES DEFINE_SYMBOL ${_symbol})
- # by default don't add any linked libraries to the "exported"
+ # By default don't add any linked libraries to the "exported"
# link interfaces, so that executables linking against this library
# will not automatically add implicit dependencies to their link list.
#
# This reduces inter-package dependencies and makes it easier to remove
# dependencies of shared libraries without breaking binary compatibility.
if(NOT "${_add_lib_param}" STREQUAL "STATIC")
- # only do this inside kdelibs for now (so there is not too much breakage all at once, Alex
- if(KDE4_ENABLE_EXPERIMENTAL_LIB_EXPORT)
- set_target_properties(${_target_NAME} PROPERTIES LINK_INTERFACE_LIBRARIES "" )
- endif(KDE4_ENABLE_EXPERIMENTAL_LIB_EXPORT)
+ set_target_properties(${_target_NAME} PROPERTIES LINK_INTERFACE_LIBRARIES "" )
endif(NOT "${_add_lib_param}" STREQUAL "STATIC")
endmacro (KDE4_ADD_LIBRARY _target_NAME _lib_TYPE)
More information about the Kde-buildsystem
mailing list