From: Matthias Maier Date: Tue, 1 Feb 2022 16:12:31 +0000 (-0600) Subject: Require CMake 3.3 or newer X-Git-Tag: v9.4.0-rc1~521^2~9 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47fbd14bb8b84546fb4e941261c40f85455e9301;p=dealii.git Require CMake 3.3 or newer --- 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 "")