From e648f23e18594a8fb3f38a1312f72344b1a820b3 Mon Sep 17 00:00:00 2001
From: Teo Mrnjavac <teo@kde.org>
Date: Tue, 14 Oct 2014 17:10:43 +0200
Subject: [PATCH] CMP0043 doesn't apply <3.0.0

---
 CMakeLists.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index bbd9928cf9..6f57f68af4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,7 +20,9 @@ endif()
 cmake_policy( SET CMP0023 OLD )
 
 # Keep cmake 3.0 quiet
-cmake_policy( SET CMP0043 OLD )
+if( ${CMAKE_VERSION} VERSION_LESS "3.0.0" )
+    cmake_policy( SET CMP0043 OLD )
+endif()
 
 include( MacroOptionalFindPackage )
 include( MacroLogFeature )
-- 
GitLab