Require explicit -DBUILD_OSX_UNIVERSAL to build universal binaries.

pull/36/head
Mooneer Salem 2020-11-15 14:18:59 -08:00
parent 31453bd5d4
commit 6facf74c25
1 changed files with 2 additions and 0 deletions

View File

@ -21,7 +21,9 @@ mark_as_advanced(CLEAR
)
# 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