From aa83728143fbb68cee0a037c6e310b301ef01639 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Fri, 25 Jan 2013 15:24:33 +0100 Subject: Use the CMAKE_LINK_DEPENDS_NO_SHARED feature. This only has an effect with CMake 2.8.11. --- kde-modules/KDECMakeSettings.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kde-modules/KDECMakeSettings.cmake b/kde-modules/KDECMakeSettings.cmake index 46c466e0..6c345dd0 100644 --- a/kde-modules/KDECMakeSettings.cmake +++ b/kde-modules/KDECMakeSettings.cmake @@ -83,6 +83,10 @@ if(NOT KDE_SKIP_BUILD_SETTINGS) # of all targets. Similar to CMAKE_INCLUDE_CURRENT_DIR, but transitive. set(CMAKE_BUILD_INTERFACE_INCLUDES ON) + # When a shared library changes, but its includes do not, don't relink + # all dependencies. It is not needed. + set(CMAKE_LINK_DEPENDS_NO_SHARED ON) + # This will only have an effect in CMake 2.8.7 set(CMAKE_LINK_INTERFACE_LIBRARIES "") -- cgit v1.2.1