CMake: Extend AArch64 check to include arm64

This has been seen in some build environments, forgot to commit this a
while ago.
This commit is contained in:
Ryan Houdek 2022-09-08 15:17:40 -07:00
parent c987e1ef44
commit ce8175a800
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ if (CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64")
set (X86_TOOLCHAIN_FILE "")
endif()
if (CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64")
if (CMAKE_SYSTEM_PROCESSOR MATCHES "^aarch64|^arm64|^armv8\.*")
set(_M_ARM_64 1)
add_definitions(-D_M_ARM_64=1)
endif()

View File

@ -9,7 +9,7 @@ if (CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mcx16")
endif()
if (CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64")
if (CMAKE_SYSTEM_PROCESSOR MATCHES "^aarch64|^arm64|^armv8\.*")
set(_M_ARM_64 1)
endif()