diff --git a/CMakeLists.txt b/CMakeLists.txt index 157eef4..ba70f53 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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