From: Christoph GrĂ¼ninger Date: Wed, 26 Mar 2025 13:18:12 +0000 (+0100) Subject: [cmake] Require minimum CMake version of 3.5 (#2555) X-Git-Tag: v3.7.9~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=39320ae104701b36fa4f8a4f5cdf97ae5ba6411f;p=thirdparty%2Flibarchive.git [cmake] Require minimum CMake version of 3.5 (#2555) CMake 4.0 will be released soon and it refuses to accept a minimum required version below 3.5 without additional flags. (cherry picked from commit 4237b476fd4ef4b2b5ebac55811d92e73aeb5257) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 6719a189c..74e05cbfd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,12 +1,9 @@ # -CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12 FATAL_ERROR) +cmake_minimum_required(VERSION 3.5 FATAL_ERROR) if(APPLE AND CMAKE_VERSION VERSION_LESS "3.17.0") message(WARNING "CMake>=3.17.0 required to make the generated shared library have the same Mach-O headers as autotools") endif() -if(POLICY CMP0065) - cmake_policy(SET CMP0065 NEW) #3.4 don't use `-rdynamic` with executables -endif() if(POLICY CMP0074) cmake_policy(SET CMP0074 NEW) #3.12.0 `find_package()`` uses ``_ROOT`` variables. endif()