From 5e17368b41dbfc1bfc789badd0760f321c508c55 Mon Sep 17 00:00:00 2001 From: Czarek Nakamoto Date: Wed, 15 May 2024 18:21:22 +0200 Subject: MAKE_OSX_ARCHITECTURES --- monero_libwallet2_api_c/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'monero_libwallet2_api_c') diff --git a/monero_libwallet2_api_c/CMakeLists.txt b/monero_libwallet2_api_c/CMakeLists.txt index 59343fb..38bd850 100644 --- a/monero_libwallet2_api_c/CMakeLists.txt +++ b/monero_libwallet2_api_c/CMakeLists.txt @@ -18,6 +18,14 @@ elseif(${HOST_ABI} STREQUAL "host-apple-ios") set(CMAKE_SYSTEM_NAME iOS) endif() +if (${HOST_ABI} STREQUAL "host-apple-darwin") + EXECUTE_PROCESS( COMMAND uname -m COMMAND tr -d '\n' OUTPUT_VARIABLE ARCHITECTURE ) + if (NOT ${ARCHITECTURE} STREQUAL arm64) + set(CMAKE_OSX_ARCHITECTURES x86_64) + endif() +endif() + + add_library( wallet2_api_c SHARED src/main/cpp/helpers.cpp -- cgit v1.2.3