aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kde-modules/KDECMakeSettings.cmake9
1 files changed, 8 insertions, 1 deletions
diff --git a/kde-modules/KDECMakeSettings.cmake b/kde-modules/KDECMakeSettings.cmake
index 6c345dd0..fbd22754 100644
--- a/kde-modules/KDECMakeSettings.cmake
+++ b/kde-modules/KDECMakeSettings.cmake
@@ -87,7 +87,14 @@ if(NOT KDE_SKIP_BUILD_SETTINGS)
# all dependencies. It is not needed.
set(CMAKE_LINK_DEPENDS_NO_SHARED ON)
- # This will only have an effect in CMake 2.8.7
+ # Since CMake 2.8.7
+ # By default don't add any linked libraries to the "exported"
+ # link interfaces of shared libraries, so that executables linking
+ # against these libraries 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.
set(CMAKE_LINK_INTERFACE_LIBRARIES "")
# Default to shared libs for KDE, if no type is explicitely given to add_library():