rtl_433: backport upstream patch for CMake >= 4.0 support
authorChristian Marangi <[email protected]>
Mon, 24 Nov 2025 19:21:57 +0000 (20:21 +0100)
committerChristian Marangi <[email protected]>
Mon, 24 Nov 2025 19:21:57 +0000 (20:21 +0100)
Backport upstream patch for rtl_433 for CMake >= 4.0 support.

Signed-off-by: Christian Marangi <[email protected]>
utils/rtl_433/patches/001-build-Update-for-compat-with-newer-CMake-closes-3245.patch [new file with mode: 0644]

diff --git a/utils/rtl_433/patches/001-build-Update-for-compat-with-newer-CMake-closes-3245.patch b/utils/rtl_433/patches/001-build-Update-for-compat-with-newer-CMake-closes-3245.patch
new file mode 100644 (file)
index 0000000..bb20838
--- /dev/null
@@ -0,0 +1,20 @@
+From 42ac641452aa56afa04f7bad5a55f790ee639852 Mon Sep 17 00:00:00 2001
+From: "Christian W. Zuckschwerdt" <[email protected]>
+Date: Sun, 30 Mar 2025 12:05:53 +0200
+Subject: [PATCH] build: Update for compat with newer CMake (closes #3245)
+
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,7 +1,7 @@
+ ########################################################################
+ # Project setup
+ ########################################################################
+-cmake_minimum_required(VERSION 2.6)
++cmake_minimum_required(VERSION 2.6...3.10)
+ # Fix behavior of CMAKE_C_STANDARD when targeting macOS.
+ if(POLICY CMP0025)
+     cmake_policy(SET CMP0025 NEW)