File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ From b354c009a60bcd6d7fc04014e200a1ee9c45c167 Mon Sep 17 00:00:00 2001
2+ From: yaswanthsastry <yaswanth.sastry@multicorewareinc.com>
3+ Date: Mon, 24 Feb 2025 17:07:03 +0530
4+ Subject: [PATCH] Fix CMake build error with latest CMake 4.0 release
5+
6+ ---
7+ source/CMakeLists.txt | 4 ++--
8+ 1 file changed, 2 insertions(+), 2 deletions(-)
9+
10+ diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt
11+ index 37dbe1a87..4f5b3ed82 100755
12+ --- a/source/CMakeLists.txt
13+ +++ b/source/CMakeLists.txt
14+ @@ -7,13 +7,13 @@ if(NOT CMAKE_BUILD_TYPE)
15+ endif()
16+ message(STATUS "cmake version ${CMAKE_VERSION}")
17+ if(POLICY CMP0025)
18+ - cmake_policy(SET CMP0025 OLD) # report Apple's Clang as just Clang
19+ + cmake_policy(SET CMP0025 NEW) # report Apple's Clang as just Clang
20+ endif()
21+ if(POLICY CMP0042)
22+ cmake_policy(SET CMP0042 NEW) # MACOSX_RPATH
23+ endif()
24+ if(POLICY CMP0054)
25+ - cmake_policy(SET CMP0054 OLD) # Only interpret if() arguments as variables or keywords when unquoted
26+ + cmake_policy(SET CMP0054 NEW) # Only interpret if() arguments as variables or keywords when unquoted
27+ endif()
28+
29+ project (x265)
30+ - -
31+ 2.49.0
32+
33+
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ include ../utils/Makefrag
33SOURCE_URL = http://ftp.videolan.org/pub/videolan/x265/x265_4.1.tar.gz
44SOURCE_FILE = x265_4.1.tar.gz
55SOURCE_DIR = x265_4.1/source
6- CMAKE_ARGS = -DCMAKE_INSTALL_PREFIX=$(PREFIX ) -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=aarch64 -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo
6+ PATCH_SOURCE = cd temp/$(SOURCE_DIR ) /.. && cat ../../0001-cmake-fix.patch | patch -Np1
7+ CMAKE_ARGS = -DCMAKE_INSTALL_PREFIX=$(PREFIX ) -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=aarch64 -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_POLICY_VERSION_MINIMUM=3.5
78
89$(eval $(call define_cmake_package))
You can’t perform that action at this time.
0 commit comments