diff --git a/CMakeLists.txt b/CMakeLists.txt index 6b7ec49c..59212be1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,7 +14,7 @@ IF(NOT CMAKE_BUILD_TYPE) ENDIF() SET_PROPERTY(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS None Debug Release RelWithDebInfo MinSizeRel) -IF(CMAKE_VERSION VERSION_GREATER "3.0") +IF(NOT CMAKE_VERSION VERSION_LESS "3.1") cmake_policy(SET CMP0054 NEW) ENDIF()