Use the correct directory for m1 for embedding libfdb_java

This commit is contained in:
Andrew Noyes 2021-12-03 16:31:50 -08:00
parent 5fae5c859e
commit 5d88fdf16c
1 changed files with 5 additions and 1 deletions

View File

@ -218,7 +218,11 @@ if(NOT OPEN_FOR_IDE)
if(WIN32)
set(lib_destination "windows/amd64")
elseif(APPLE)
set(lib_destination "osx/x86_64")
if(CMAKE_SYSTEM_PROCESSOR MATCHES "arm64")
set(lib_destination "osx/aarch64")
else()
set(lib_destination "osx/x86_64")
endif()
else()
if(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64")
set(lib_destination "linux/aarch64")