diff --git a/CMakeLists.txt b/CMakeLists.txt
index a248828ceb1a287cdfa14474424833b697e947aa..5339115fc0cfdfbc5216b311cacdc92727193309 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,7 +1,7 @@
 PROJECT(Simox)
 
 cmake_minimum_required(VERSION 2.6)
-if("${CMAKE_VERSION}" VERSION_GREATER 2.8.11)
+if(NOT ("${CMAKE_VERSION}" VERSION_LESS 2.8.12))
 	cmake_policy(SET CMP0022 OLD) # avoid INTERFACE_LINK_LIBRARIES warninss
 ENDIF()
 
diff --git a/VirtualRobot/CMakeLists.txt b/VirtualRobot/CMakeLists.txt
index bcd314e1490c4b9bd2915494f64251ecda6043e7..144fadd6d1ac26aa0ee13d24d3587bec223222be 100644
--- a/VirtualRobot/CMakeLists.txt
+++ b/VirtualRobot/CMakeLists.txt
@@ -5,7 +5,7 @@ MESSAGE (STATUS "\n ***** CONFIGURING Simox project VirtualRobot *****")
 CMAKE_MINIMUM_REQUIRED(VERSION 2.6.2)
 CMAKE_POLICY(VERSION 2.6)
 
-if("${CMAKE_VERSION}" VERSION_GREATER 2.8.11)
+if(NOT ("${CMAKE_VERSION}" VERSION_LESS 2.8.12))
 	cmake_policy(SET CMP0022 OLD) # avoid INTERFACE_LINK_LIBRARIES warninss
 ENDIF()