This commit is contained in:
Michael Podvitskiy 2024-11-14 14:04:27 +08:00 committed by GitHub
commit eb03ae33b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1116,6 +1116,11 @@ if (NOT MSVC)
endif()
endif()
list(LENGTH CMAKE_OSX_ARCHITECTURES OSX_ARCHITECTURES_LENGTH)
if (OSX_ARCHITECTURES_LENGTH GREATER 1)
message(FATAL_ERROR "There's no support for multiple architectures with CMAKE_OSX_ARCHITECTURES.\nPlease use 'lipo -create ...' to create a universal library/binary.")
endif()
set(ARCH_FLAGS "")
if (CMAKE_OSX_ARCHITECTURES STREQUAL "arm64" OR