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