From e36234b9a5ec75e56780fbee10647ac07e4da808 Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Wed, 12 Nov 2025 00:19:31 +0100 Subject: [PATCH] libuhttpd: backport upstream CMake patch Backport upstream CMake patch to fix compilation error to support CMake version >= 4.0. Fixes: #27835 Signed-off-by: Christian Marangi --- ...1-fix-cmake-required-minimum-version.patch | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 libs/libuhttpd/patches/001-fix-cmake-required-minimum-version.patch diff --git a/libs/libuhttpd/patches/001-fix-cmake-required-minimum-version.patch b/libs/libuhttpd/patches/001-fix-cmake-required-minimum-version.patch new file mode 100644 index 0000000000..319e8d9f97 --- /dev/null +++ b/libs/libuhttpd/patches/001-fix-cmake-required-minimum-version.patch @@ -0,0 +1,28 @@ +From b9bf3936b3778912444eff7f7866db1d66f4c50b Mon Sep 17 00:00:00 2001 +From: Thomas Perale +Date: Sun, 6 Jul 2025 20:14:31 +0200 +Subject: [PATCH] fix: cmake required minimum version + +When trying to compile the project with CMake 4 the following error +shows up: + +CMake Error at CMakeLists.txt:1 (cmake_minimum_required): + Compatibility with CMake < 3.5 has been removed from CMake. + +This commit bump the minimum required cmake version to meet the needs of +CMake v4. + +For more information see: + - https://cmake.org/cmake/help/latest/release/4.0.html#deprecated-and-removed-features +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.0) ++cmake_minimum_required(VERSION 3.5) + + project(libuhttpd C) + -- 2.30.2