]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
[cmake] Require minimum CMake version of 3.5 (#2555)
authorChristoph GrĂ¼ninger <foss@grueninger.de>
Wed, 26 Mar 2025 13:18:12 +0000 (14:18 +0100)
committerGitHub <noreply@github.com>
Wed, 26 Mar 2025 13:18:12 +0000 (06:18 -0700)
CMake 4.0 will be released soon and it refuses to accept a minimum
required version below 3.5 without additional flags.

CMakeLists.txt

index 19f7438b45b8f6cbbd179d204145c4a1529af865..55234b5ed6e3e540f0a604b1ccce98e89396955e 100644 (file)
@@ -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 ``<PackageName>_ROOT`` variables.
 endif()