From 3162c487d902513ce5b52681a124f9b57caed3f3 Mon Sep 17 00:00:00 2001 From: aWZHY0yQH81uOYvH <32046476+aWZHY0yQH81uOYvH@users.noreply.github.com> Date: Fri, 6 Jan 2023 00:38:41 -0800 Subject: [PATCH] detect `arm64` under macOS --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3f9fa1e..e465451 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -159,7 +159,7 @@ elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "AMD64") set(ARCH "x86_64") elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(ppc64.*|PPC64.*|powerpc64.*)") set(ARCH "ppc64") -elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch64") +elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^(aarch64|arm64)") set(ARCH "aarch64") elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "unknown") set(ARCH "unknown")