[x265] Fix macOS arm64 compilation after the last CMake 4 commit

Damiano Galassi galad87 at icloud.com
Fri Apr 4 11:23:21 UTC 2025


Hello,
Here’s a couple of fixes to CMakeLists.txt:

Fix compilation on macOS arm64 after the latest CMake 4 commit, and improve macOS cross compilation

There is no need to set CMP0025 and CMP0054 in CMake 4, because those policies are always enable.
Fix the actual cause the previous usage of CMP0025, and just remove CMP0054 because
it looks like it's not needed anymore, and bump the minimum CMake versino to 3.5.

Plus set the CMAKE_OSX_ARCHITECTURES option when cross compiling on macOS

Patch attached to the email
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-compilation-on-macOS-arm64-after-the-latest-CMak.patch
Type: application/octet-stream
Size: 2262 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20250404/21fffec8/attachment.obj>


More information about the x265-devel mailing list