aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-10-11 11:52:04 +0200
committerStephen Kelly <steveire@gmail.com>2013-10-11 11:52:04 +0200
commitba86148cfc7804a1dbfd194d57db99768ed8a12b (patch)
tree94cbf2522494c5a26bb701c6cfd71d45621a8d3d
parentf669c753cb79af234393a3772919aa60773c65c1 (diff)
downloadextra-cmake-modules-ba86148cfc7804a1dbfd194d57db99768ed8a12b.tar.gz
extra-cmake-modules-ba86148cfc7804a1dbfd194d57db99768ed8a12b.tar.bz2
Resolve policy error when CMake requirement is 2.8.12.
-rw-r--r--kde-modules/KDECMakeSettings.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/kde-modules/KDECMakeSettings.cmake b/kde-modules/KDECMakeSettings.cmake
index b3ebeacb..800f7708 100644
--- a/kde-modules/KDECMakeSettings.cmake
+++ b/kde-modules/KDECMakeSettings.cmake
@@ -97,6 +97,8 @@ if(NOT KDE_SKIP_BUILD_SETTINGS)
# dependencies of shared libraries without breaking binary compatibility.
# Since CMake 2.8.7
set(CMAKE_LINK_INTERFACE_LIBRARIES "")
+ # TODO: Remove this and the above line.
+ cmake_policy(SET CMP0022 OLD)
# Default to shared libs for KDE, if no type is explicitely given to add_library():
set(BUILD_SHARED_LIBS TRUE CACHE BOOL "If enabled, shared libs will be built by default, otherwise static libs")