###
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d454821..9201d20 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,20 +6,20 @@ cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
cmake_policy(SET CMP0002 OLD)
#cmake_policy CMP0017 was introduced in version 2.8.4
-if(${CMAKE_VERSION} VERSION_GREATER 2.8.3)
+if (NOT ${CMAKE_VERSION} VERSION_LESS 2.8.3)
cmake_policy(SET CMP0017 NEW)
-endif()
+endif ()
-if(${CMAKE_VERSION} VERSION_GREATER 2.8.12)
+if (NOT ${CMAKE_VERSION} VERSION_LESS 2.8.12)
cmake_policy(SET CMP0022 OLD)
-endif()
+endif ()
-if(${CMAKE_VERSION} VERSION_GREATER 3.0.0)
+if (NOT ${CMAKE_VERSION} VERSION_LESS 3.0.0)
cmake_policy(SET CMP0026 OLD)
cmake_policy(SET CMP0046 OLD)
-endif()
+endif ()
-if(${CMAKE_VERSION} VERSION_GREATER 3.3.0)
+if(NOT ${CMAKE_VERSION} VERSION_LESS 3.3.0)
cmake_policy(SET CMP0063 OLD)
endif()
3f41be5 Use VERSION_LESS for the cmake policies
CMakeLists.txt | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
Upstream: quickgit.kde.org