Use it instead of my previous patch? Tested on updated today Arch
linux, it will be nice if it will not break ubuntu 16.04 (i tried to
set cmake version to 3.5.1)
From e6eb129da7596449ae4d375d2cdacf8c300fc171 Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <[email protected]>
Date: Mon, 7 Apr 2025 02:56:09 +0000
Subject: [PATCH] Fix x265 build with cmake 4.0
---
cinelerra-5.1/thirdparty/src/x265_4.0.patch4 | 23 ++++++++++++++++++++
1 file changed, 23 insertions(+)
create mode 100644 cinelerra-5.1/thirdparty/src/x265_4.0.patch4
diff --git a/cinelerra-5.1/thirdparty/src/x265_4.0.patch4 b/cinelerra-5.1/thirdparty/src/x265_4.0.patch4
new file mode 100644
index 00000000..1f011575
--- /dev/null
+++ b/cinelerra-5.1/thirdparty/src/x265_4.0.patch4
@@ -0,0 +1,23 @@
+--- ./source/CMakeLists.txt 2024-09-13 13:02:55.000000000 +0000
++++ ./source/CMakeLists.txx.new 2025-04-07 02:22:44.552824274 +0000
+@@ -7,17 +7,17 @@
+ endif()
+ message(STATUS "cmake version ${CMAKE_VERSION}")
+ if(POLICY CMP0025)
+- cmake_policy(SET CMP0025 OLD) # report Apple's Clang as just Clang
++ cmake_policy(SET CMP0025 NEW) # report Apple's Clang as just Clang
+ endif()
+ if(POLICY CMP0042)
+ cmake_policy(SET CMP0042 NEW) # MACOSX_RPATH
+ endif()
+ if(POLICY CMP0054)
+- cmake_policy(SET CMP0054 OLD) # Only interpret if() arguments as variables or keywords when unquoted
++ cmake_policy(SET CMP0054 NEW) # Only interpret if() arguments as variables or keywords when unquoted
+ endif()
+
+ project (x265)
+-cmake_minimum_required (VERSION 2.8.8) # OBJECT libraries require 2.8.8
++cmake_minimum_required (VERSION 3.5.1) # OBJECT libraries require 2.8.8
+ include(CheckIncludeFiles)
+ include(CheckFunctionExists)
+ include(CheckSymbolExists)
--
2.49.0
--
Cin mailing list
[email protected]
https://lists.cinelerra-gg.org/mailman/listinfo/cin