diff --git a/CMakeLists.txt b/CMakeLists.txt index 88cb23129e..3b673708a3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,13 +1,9 @@ if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "4.0") - set(CMAKE_POLICY_VERSION_MINIMUM 3.5 CACHE STRING "" FORCE) + set(CMAKE_POLICY_VERSION_MINIMUM 3.13 CACHE STRING "" FORCE) endif() cmake_minimum_required(VERSION 3.13) -# Verify that your CMake version is exactly 3.5 series or higher on windows -if ( (MSVC OR WIN32) AND (${CMAKE_VERSION} VERSION_LESS "3.5") ) - message(FATAL_ERROR "CMake current version ${CMAKE_VERSION} is too old. Minimum required is 3.5.") -endif() # The following line used to be in tests/CMakeLists.txt # Having it there causes rebuilds of all targets on any CMakeLists.txt change under tests/ @@ -377,11 +373,6 @@ endif () if (CMAKE_SYSTEM_NAME STREQUAL "Linux") find_package(PkgConfig REQUIRED) - if (CMAKE_VERSION VERSION_LESS "3.1") - # Workaround for an old CMake, which does not understand CMAKE_CXX_STANDARD. - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") - endif() - # Boost on Raspberry-Pi does not link to pthreads. set(THREADS_PREFER_PTHREAD_FLAG ON) find_package(Threads REQUIRED)