From a9bb6f809940dc83fa49e91ae9d0ce2c92dc9a8a Mon Sep 17 00:00:00 2001 From: Dmitriy Karpushin Date: Tue, 4 Apr 2023 17:10:58 +0300 Subject: [PATCH] Fix to build at least x86_64 version of Amnezia desktop app on Apple Silicon --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e8dbd7c7..f1e5d37c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,6 +7,10 @@ if(ANDROID) set(QT_ANDROID_BUILD_ALL_ABIS ON) endif() +if(APPLE AND NOT IOS) + set(CMAKE_OSX_ARCHITECTURES "x86_64") +endif() + add_subdirectory(client) if(NOT IOS AND NOT ANDROID)