Again, tested only on Arch, but should be safer because we only build libsvtav1 on Linux distros where cmake > 3.16 ?
sorry for 2.3.9 typo, must be 2.3.0 (harmaless)
From a7fc05970512da8f718a7dba981646e890fa846a Mon Sep 17 00:00:00 2001 From: Andrew Randrianasulu <[email protected]> Date: Mon, 7 Apr 2025 04:14:47 +0000 Subject: [PATCH 2/2] Fix libsvtav1-2.3.9 build with cmake 4.0 --- .../thirdparty/src/libsvtav1-v2.3.0.patch0 | 17 +++++++---------- .../thirdparty/src/libsvtav1-v2.3.0.patch1 | 8 ++++++++ 2 files changed, 15 insertions(+), 10 deletions(-) create mode 100644 cinelerra-5.1/thirdparty/src/libsvtav1-v2.3.0.patch1 diff --git a/cinelerra-5.1/thirdparty/src/libsvtav1-v2.3.0.patch0 b/cinelerra-5.1/thirdparty/src/libsvtav1-v2.3.0.patch0 index 286d33c8..2add8ce9 100644 --- a/cinelerra-5.1/thirdparty/src/libsvtav1-v2.3.0.patch0 +++ b/cinelerra-5.1/thirdparty/src/libsvtav1-v2.3.0.patch0 @@ -1,11 +1,8 @@ ---- libsvtav1-v2.2.1/CMakeLists.txt -+++ libsvtav1-v2.2.1/CMakeLists.txt -@@ -9,7 +9,7 @@ - # PATENTS file, you can obtain it at https://www.aomedia.org/license/patent-license. - # +--- ./third_party/cpuinfo/CMakeLists.txx 2024-10-29 15:44:08.000000000 +0000 ++++ /third_party/cpuinfo/CMakeLists.txt 2025-04-07 03:03:34.631263064 +0000 +@@ -1,4 +1,4 @@ +-CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12 FATAL_ERROR) ++CMAKE_MINIMUM_REQUIRED(VERSION 3.5.1 FATAL_ERROR) --cmake_minimum_required(VERSION 3.16) -+cmake_minimum_required(VERSION 3.12) - - if("${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}") - message(WARNING "Building in-source is highly not recommended\n" + if(POLICY CMP0063) + cmake_policy(SET CMP0063 NEW) diff --git a/cinelerra-5.1/thirdparty/src/libsvtav1-v2.3.0.patch1 b/cinelerra-5.1/thirdparty/src/libsvtav1-v2.3.0.patch1 new file mode 100644 index 00000000..942c12e9 --- /dev/null +++ b/cinelerra-5.1/thirdparty/src/libsvtav1-v2.3.0.patch1 @@ -0,0 +1,8 @@ +--- ./third_party/cpuinfo/deps/clog/CmakeLists.txx 2024-10-29 15:44:08.000000000 +0000 ++++ ./third_party/cpuinfo/deps/clog/CMakeLists.txt 2025-04-07 03:08:49.606466389 +0000 +@@ -1,4 +1,4 @@ +-CMAKE_MINIMUM_REQUIRED(VERSION 3.1 FATAL_ERROR) ++CMAKE_MINIMUM_REQUIRED(VERSION 3.5 FATAL_ERROR) + + INCLUDE(GNUInstallDirs) + -- 2.49.0
-- Cin mailing list [email protected] https://lists.cinelerra-gg.org/mailman/listinfo/cin

