rtty: backport upstream patch for CMake >= 4.0 support
authorChristian Marangi <[email protected]>
Tue, 25 Nov 2025 14:48:47 +0000 (15:48 +0100)
committerChristian Marangi <[email protected]>
Tue, 25 Nov 2025 14:49:53 +0000 (15:49 +0100)
Backport upstream patch for rtty for CMake >= 4.0 support.

Signed-off-by: Christian Marangi <[email protected]>
utils/rtty/patches/001-fix-compilation-with-newer-CMake.patch [new file with mode: 0644]

diff --git a/utils/rtty/patches/001-fix-compilation-with-newer-CMake.patch b/utils/rtty/patches/001-fix-compilation-with-newer-CMake.patch
new file mode 100644 (file)
index 0000000..0bb525a
--- /dev/null
@@ -0,0 +1,18 @@
+From 1b4c77df1dbf99f9acce02b51264cdb32a298146 Mon Sep 17 00:00:00 2001
+From: Rosen Penev <[email protected]>
+Date: Mon, 24 Nov 2025 08:33:13 -0800
+Subject: [PATCH] fix compilation with newer CMake
+
+less than 3.5 is not supported anymore.
+---
+ 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.10)
+ project(rtty C)