From 0375f4b7852123e08eafdc61ab95eb040c3ee7f9 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 2 Apr 2022 16:49:07 -0500 Subject: [PATCH] [buildcore] Enable universal binaries for Mac release builds --- deps/buildcore/base.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deps/buildcore/base.cmake b/deps/buildcore/base.cmake index 69f860b3..62380715 100644 --- a/deps/buildcore/base.cmake +++ b/deps/buildcore/base.cmake @@ -26,6 +26,9 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug") add_definitions(-DDEBUG) else() add_definitions(-DNDEBUG) + if(APPLE) + set(CMAKE_OSX_ARCHITECTURES arm64;x86_64) + endif() endif() if(NOT MSVC)