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

Signed-off-by: Christian Marangi <[email protected]>
libs/srt/patches/001-build-Update-for-compatibility-with-CMake-4.x-3167.patch [new file with mode: 0644]

diff --git a/libs/srt/patches/001-build-Update-for-compatibility-with-CMake-4.x-3167.patch b/libs/srt/patches/001-build-Update-for-compatibility-with-CMake-4.x-3167.patch
new file mode 100644 (file)
index 0000000..713153b
--- /dev/null
@@ -0,0 +1,20 @@
+From 0def1b1a1094fc57752f241250e9a1aed71bbffd Mon Sep 17 00:00:00 2001
+From: Sam Umbach <[email protected]>
+Date: Mon, 19 May 2025 08:39:46 -0400
+Subject: [PATCH] [build] Update for compatibility with CMake 4.x (#3167)
+
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -7,7 +7,7 @@
+ # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ #
+-cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
++cmake_minimum_required (VERSION 3.5 FATAL_ERROR)
+ set (SRT_VERSION 1.5.4)
+ set (CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/scripts")