From 47fbd14bb8b84546fb4e941261c40f85455e9301 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Tue, 1 Feb 2022 10:12:31 -0600 Subject: [PATCH] Require CMake 3.3 or newer --- CMakeLists.txt | 10 +++++----- tests/CMakeLists.txt | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e50bc50838..c8f55aa9e5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,14 +33,14 @@ MESSAGE(STATUS "This is CMake ${CMAKE_VERSION}") MESSAGE(STATUS "") -CMAKE_MINIMUM_REQUIRED(VERSION 3.1.0) +CMAKE_MINIMUM_REQUIRED(VERSION 3.3.0) # -# We support all policy changes up to version 3.1.0. Thus, explicitly set -# all policies CMP0001 - CMP0054 to new for version 3.1 (and later) to -# avoid some unnecessary warnings. +# We support all policy changes up to version 3.3. Thus, explicitly set all +# policies CMP0001 - CMP0054 to new for version 3.3 (and later) to avoid +# some unnecessary warnings. # -CMAKE_POLICY(VERSION 3.1.0) +CMAKE_POLICY(VERSION 3.3.0) IF("${CMAKE_VERSION}" VERSION_LESS "3.11" AND POLICY CMP0037) # allow to override "test" target for quick tests diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 0127e40fcb..1a88e3423a 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -21,7 +21,7 @@ # prune_tests - remove all testsuite subprojects # -CMAKE_MINIMUM_REQUIRED(VERSION 3.1.0) +CMAKE_MINIMUM_REQUIRED(VERSION 3.3.0) MACRO(SET_IF_EMPTY _variable) IF("${${_variable}}" STREQUAL "") -- 2.39.5