mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-21 19:51:27 +00:00
- fixed platform detection of Apple ARM64 target
This commit is contained in:
parent
b0e2c993f7
commit
b7e8a87b81
1 changed files with 6 additions and 0 deletions
|
@ -96,6 +96,8 @@ function(target_architecture output_var)
|
||||||
set(osx_arch_x86_64 TRUE)
|
set(osx_arch_x86_64 TRUE)
|
||||||
elseif("${osx_arch}" STREQUAL "ppc64" AND ppc_support)
|
elseif("${osx_arch}" STREQUAL "ppc64" AND ppc_support)
|
||||||
set(osx_arch_ppc64 TRUE)
|
set(osx_arch_ppc64 TRUE)
|
||||||
|
elseif("${osx_arch}" STREQUAL "arm64")
|
||||||
|
set(osx_arch_arm64 TRUE)
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "Invalid OS X arch name: ${osx_arch}")
|
message(FATAL_ERROR "Invalid OS X arch name: ${osx_arch}")
|
||||||
endif()
|
endif()
|
||||||
|
@ -117,6 +119,10 @@ function(target_architecture output_var)
|
||||||
if(osx_arch_ppc64)
|
if(osx_arch_ppc64)
|
||||||
list(APPEND ARCH ppc64)
|
list(APPEND ARCH ppc64)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(osx_arch_arm64)
|
||||||
|
list(APPEND ARCH arm64)
|
||||||
|
endif()
|
||||||
else()
|
else()
|
||||||
file(WRITE "${CMAKE_BINARY_DIR}/arch.c" "${archdetect_c_code}")
|
file(WRITE "${CMAKE_BINARY_DIR}/arch.c" "${archdetect_c_code}")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue