File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,8 @@ if (NOT ${USE_EXTERNAL_SECP256K1})
91
91
add_library (libsecp256k1 STATIC IMPORTED )
92
92
93
93
# Ensure we use the lib folder for 32-bit and lib64 folder for 64-bit
94
- if (${CMAKE_ANDROID_ARCH} MATCHES "^(arm|mips|x86)$" )
94
+ # Note: macOS always outputs to a "lib" folder
95
+ if ((${CMAKE_ANDROID_ARCH} MATCHES "^(arm|mips|x86)$" ) OR (${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Darwin" ))
95
96
set_target_properties (libsecp256k1 PROPERTIES IMPORTED_LOCATION ${PROJECT_SOURCE_DIR} /src/secp256k1/build/android/${ANDROID_ABI}/lib/libsecp256k1.a )
96
97
else ()
97
98
set_target_properties (libsecp256k1 PROPERTIES IMPORTED_LOCATION ${PROJECT_SOURCE_DIR} /src/secp256k1/build/android/${ANDROID_ABI}/lib64/libsecp256k1.a )
You can’t perform that action at this time.
0 commit comments