mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 14:21:04 +08:00
macOS: allow CMAKE_OSX_ARCHITECTURES to be arm64
This commit is contained in:
parent
b762276a27
commit
252d26afb0
@ -253,10 +253,12 @@ if(SFML_OS_MACOSX)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# only the default architecture (i.e. 64-bit) is supported
|
# only the default x86_64 or arm64 are supported
|
||||||
if(NOT CMAKE_OSX_ARCHITECTURES STREQUAL "x86_64")
|
foreach (arch IN LISTS CMAKE_OSX_ARCHITECTURES)
|
||||||
message(FATAL_ERROR "Only 64-bit architecture is supported")
|
if (NOT (arch STREQUAL "x86_64" OR arch STREQUAL "arm64"))
|
||||||
endif()
|
message(FATAL_ERROR "Invalid arch ${arch}")
|
||||||
|
endif()
|
||||||
|
endforeach()
|
||||||
|
|
||||||
# configure Xcode templates
|
# configure Xcode templates
|
||||||
set(XCODE_TEMPLATES_ARCH "\$(NATIVE_ARCH_ACTUAL)")
|
set(XCODE_TEMPLATES_ARCH "\$(NATIVE_ARCH_ACTUAL)")
|
||||||
|
Loading…
Reference in New Issue
Block a user