Skip to content

Commit 4778c54

Browse files
committed
patches: add x265.patch
Fix policy definitions and minimum required CMake version in CMakeLists.txt so that we can build using riscv64 wheels. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
1 parent 60ab9ab commit 4778c54

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

patches/x265.patch

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt
2+
index 95218f5dc..badebb111 100755
3+
--- a/source/CMakeLists.txt
4+
+++ b/source/CMakeLists.txt
5+
@@ -6,18 +6,12 @@ if(NOT CMAKE_BUILD_TYPE)
6+
FORCE)
7+
endif()
8+
message(STATUS "cmake version ${CMAKE_VERSION}")
9+
-if(POLICY CMP0025)
10+
- cmake_policy(SET CMP0025 OLD) # report Apple's Clang as just Clang
11+
-endif()
12+
if(POLICY CMP0042)
13+
cmake_policy(SET CMP0042 NEW) # MACOSX_RPATH
14+
endif()
15+
-if(POLICY CMP0054)
16+
- cmake_policy(SET CMP0054 OLD) # Only interpret if() arguments as variables or keywords when unquoted
17+
-endif()
18+
19+
project (x265)
20+
-cmake_minimum_required (VERSION 2.8.8) # OBJECT libraries require 2.8.8
21+
+cmake_minimum_required (VERSION 4.2.1) # OBJECT libraries require 2.8.8
22+
include(CheckIncludeFiles)
23+
include(CheckFunctionExists)
24+
include(CheckSymbolExists)

0 commit comments

Comments
 (0)