openobex: add patch for CMake >= 4.0 support
authorChristian Marangi <[email protected]>
Mon, 24 Nov 2025 16:55:53 +0000 (17:55 +0100)
committerChristian Marangi <[email protected]>
Mon, 24 Nov 2025 16:55:53 +0000 (17:55 +0100)
Add patch for openobex for CMake >= 4.0 support.

Signed-off-by: Christian Marangi <[email protected]>
utils/openobex/patches/100-CMakeLists-update-min-version-to-3.10-for-CMake-4.0-.patch [new file with mode: 0644]

diff --git a/utils/openobex/patches/100-CMakeLists-update-min-version-to-3.10-for-CMake-4.0-.patch b/utils/openobex/patches/100-CMakeLists-update-min-version-to-3.10-for-CMake-4.0-.patch
new file mode 100644 (file)
index 0000000..a91ac7f
--- /dev/null
@@ -0,0 +1,25 @@
+From 9f866d085385242cc868f2e80df87d7d438f468d Mon Sep 17 00:00:00 2001\r
+From: Christian Marangi <[email protected]>\r
+Date: Mon, 24 Nov 2025 16:42:29 +0100\r
+Subject: [PATCH] CMakeLists: update min version to 3.10 for CMake >= 4.0\r
+ support\r
+\r
+Update minimum version of CMake to 3.10 for CMake >= 4.0 version\r
+support.\r
+\r
+New CMake require 3.5 as the minimum version with that increased to 3.10\r
+in the next CMake release.\r
+\r
+Signed-off-by: Christian Marangi <[email protected]>\r
+---\r
+ CMakeLists.txt | 2 +-\r
+ 1 file changed, 1 insertion(+), 1 deletion(-)\r
+\r
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required ( VERSION 3.1 FATAL_ERROR )\r
++cmake_minimum_required ( VERSION 3.10 FATAL_ERROR )\r
\r
+ project ( openobex\r
+   LANGUAGES C\r