# CMake toolchain file for cross compiling x265 for aarch64 # This feature is only supported as experimental. Use with caution. # Please report bugs on bitbucket # Run cmake with: cmake -DCMAKE_TOOLCHAIN_FILE=crosscompile.cmake -G "Unix Makefiles" ../../source && ccmake ../../source set(CROSS_COMPILE_ARM64 1) set(CMAKE_SYSTEM_NAME Darwin) set(CMAKE_SYSTEM_PROCESSOR aarch64) # specify the cross compiler (giving precedence to user-supplied CC/CXX) if(NOT DEFINED CMAKE_C_COMPILER) set(CMAKE_C_COMPILER gcc) endif() if(NOT DEFINED CMAKE_CXX_COMPILER) set(CMAKE_CXX_COMPILER g++) endif() # specify the target environment SET(CMAKE_FIND_ROOT_PATH /opt/homebrew/bin/)