diff options
Diffstat (limited to 'monero_libwallet2_api_c/CMakeLists.txt')
| -rw-r--r-- | monero_libwallet2_api_c/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
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 |
