This commit is contained in:
Michael Podvitskiy 2024-09-11 21:27:30 +02:00 committed by GitHub
commit 0bc8f72979
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1065,6 +1065,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