mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-24 19:02:27 +01:00
Update the cmake minimum required version to rebuild with cmake >= 4. ``` CMake Error at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 has been removed from CMake. Update the VERSION argument <min> value. Or, use the <min>...<max> syntax to tell CMake that the project requires at least <min> but has been updated to work with policies introduced by <max> or earlier. Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. ```
31 lines
969 B
Diff
31 lines
969 B
Diff
Patch-Source: https://github.com/openwrt/uhttpd/commit/ebb92e6b339b88bbc6b76501b6603c52d4887ba1
|
|
---
|
|
From ebb92e6b339b88bbc6b76501b6603c52d4887ba1 Mon Sep 17 00:00:00 2001
|
|
From: Christian Marangi <ansuelsmth@gmail.com>
|
|
Date: Fri, 3 Oct 2025 23:39:09 +0200
|
|
Subject: [PATCH] CMakeLists: update cmake minimum required version to 3.10
|
|
|
|
New cmake version 4.0 requires at least 3.5 version as the minimum
|
|
required version with it increased to 3.10 in to-be-released cmake
|
|
versions.
|
|
|
|
Set the minimum required version to 3.10 to future-proof for future
|
|
cmake version.
|
|
|
|
Suggested-by: Hannu Nyman <hannu.nyman@iki.fi>
|
|
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
|
|
---
|
|
CMakeLists.txt | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 58eb6dd..87443a6 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -1,4 +1,4 @@
|
|
-cmake_minimum_required(VERSION 2.6)
|
|
+cmake_minimum_required(VERSION 3.10)
|
|
|
|
PROJECT(uhttpd C)
|
|
|