From: Hans Kristian Rosbach Date: Thu, 2 Oct 2025 12:16:53 +0000 (+0200) Subject: Increase minimum supported CMake version from 3.5.1 to 3.12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1973%2Fhead;p=thirdparty%2Fzlib-ng.git Increase minimum supported CMake version from 3.5.1 to 3.12 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index d1633646..2b1d52e5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,4 @@ -cmake_minimum_required(VERSION 3.5.1...3.29.0) -if(CMAKE_VERSION VERSION_LESS 3.12) - cmake_policy(VERSION ${CMAKE_VERSION}) -endif() +cmake_minimum_required(VERSION 3.12...3.29.0) message(STATUS "Using CMake version ${CMAKE_VERSION}") if(POLICY CMP0169) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 34f82b71..ababb3c4 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -90,14 +90,6 @@ if(WITH_FUZZERS) add_subdirectory(fuzz) endif() -if(WITH_GTEST OR WITH_BENCHMARKS) - if(CMAKE_VERSION VERSION_LESS 3.12) - message(WARNING "Minimum cmake version of 3.12 not met for Google benchmark!") - set(WITH_BENCHMARKS OFF) - set(WITH_BENCHMARKS OFF PARENT_SCOPE) - endif() -endif() - if(WITH_BENCHMARKS) add_subdirectory(benchmarks) endif()