From 45a0307477604780c92196251d8c74b481cf9b55 Mon Sep 17 00:00:00 2001 From: Nick Angelou Date: Fri, 6 Jan 2023 11:35:45 -0600 Subject: [PATCH] Update CMake to detect the Apple M1 correctly On Apple M1 machines, building failed to determine the system was an arm machine and therefore failed to build with the appropriate intrinsic header. Adding a check for `arm64` fixes the issue. --- cmake/CheckCXXIntrinsicsHeader.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/CheckCXXIntrinsicsHeader.cmake b/cmake/CheckCXXIntrinsicsHeader.cmake index ac248b237..21c39cf2f 100644 --- a/cmake/CheckCXXIntrinsicsHeader.cmake +++ b/cmake/CheckCXXIntrinsicsHeader.cmake @@ -9,7 +9,7 @@ if(SEAL_USE_INTRIN) if(MSVC) set(SEAL_INTRIN_HEADER "intrin.h") else() - if(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64") + if(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64") set(SEAL_ARM64 ON) else() set(SEAL_ARM64 OFF)