gammu: add patch fixing CMake >= 4.0 support
authorChristian Marangi <[email protected]>
Sun, 23 Nov 2025 11:36:29 +0000 (12:36 +0100)
committerChristian Marangi <[email protected]>
Sun, 23 Nov 2025 11:36:29 +0000 (12:36 +0100)
Add patch fixing support for CMake >= 4.0 version.

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

diff --git a/utils/gammu/patches/100-CMakeLists-set-min-version-for-CMake-to-3.10-for-CMa.patch b/utils/gammu/patches/100-CMakeLists-set-min-version-for-CMake-to-3.10-for-CMa.patch
new file mode 100644 (file)
index 0000000..0d0d45a
--- /dev/null
@@ -0,0 +1,24 @@
+From 60ac0441d1dd459392c72cadeacfee9bf89e9780 Mon Sep 17 00:00:00 2001
+From: Christian Marangi <[email protected]>
+Date: Sun, 23 Nov 2025 12:33:05 +0100
+Subject: [PATCH] CMakeLists: set min version for CMake to 3.10 for CMake >=
+ 4.0
+
+Set minimum version for CMake to 3.10 for CMake >= 4.0 version support.
+
+Signed-off-by: Christian Marangi <[email protected]>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -2,7 +2,7 @@
+ # Copyright (c) 2007 - 2018 Michal Cihar
+ # vim: expandtab sw=4 ts=4 sts=4:
+-cmake_minimum_required (VERSION 3.0)
++cmake_minimum_required (VERSION 3.10)
+ INCLUDE (CMakeForceCompiler)
+ project (Gammu C)