aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-01-25 15:24:33 +0100
committerStephen Kelly <steveire@gmail.com>2013-01-25 15:24:33 +0100
commitaa83728143fbb68cee0a037c6e310b301ef01639 (patch)
tree171cfa7724ef8fc326170f09e8be6d915c7d130a
parente1fc3638557061abbb24e3c7b35fe5f835c1bbbe (diff)
downloadextra-cmake-modules-aa83728143fbb68cee0a037c6e310b301ef01639.tar.gz
extra-cmake-modules-aa83728143fbb68cee0a037c6e310b301ef01639.tar.bz2
Use the CMAKE_LINK_DEPENDS_NO_SHARED feature.
This only has an effect with CMake 2.8.11.
-rw-r--r--kde-modules/KDECMakeSettings.cmake4
1 files changed, 4 insertions, 0 deletions
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 "")