Skip to content

Commit

Permalink
Add init macOS arm build
Browse files Browse the repository at this point in the history
  • Loading branch information
sigseg5 committed May 19, 2023
1 parent e651ea7 commit 5422d3c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Binary file added client/3rd/OpenSSL/lib/macos/arm64/libcrypto.a
Binary file not shown.
Binary file added client/3rd/OpenSSL/lib/macos/arm64/libssl.a
Binary file not shown.

0 comments on commit 5422d3c

Please sign in to comment.