Add init macOS arm build

This commit is contained in:
sigseg5 2023-05-19 14:04:34 +04:00
parent e651ea7614
commit 5422d3cf2c
No known key found for this signature in database
GPG key ID: 11F4BF2AEB246E66
3 changed files with 6 additions and 1 deletions

View file

@ -13,8 +13,13 @@ if(ANDROID)
set(QT_ANDROID_BUILD_ALL_ABIS ON)
endif()
# TODO: determine build step for arm64 build, from x86_64 host
if(APPLE AND NOT IOS)
set(CMAKE_OSX_ARCHITECTURES "x86_64")
if(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "arm64")
set(CMAKE_OSX_ARCHITECTURES "arm64")
elseif(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64")
set(CMAKE_OSX_ARCHITECTURES "x86_64")
endif()
endif()
add_subdirectory(client)

Binary file not shown.

Binary file not shown.