Merge pull request #36 from tmiw/macos-arm

Mac universal binary support for LPCNet
pull/39/head
drowe67 2020-11-17 16:58:38 +10:30 committed by GitHub
commit d86da6b627
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,11 @@ mark_as_advanced(CLEAR
CMAKE_INSTALL_LIBDIR
)
# Build universal ARM64 and x86_64 binaries on Mac.
if(BUILD_OSX_UNIVERSAL)
set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64")
endif(BUILD_OSX_UNIVERSAL)
#
# Prevent in-source builds
# If an in-source build is attempted, you will still need to clean up a few