Skip to content

Commit

Permalink
Update CMake to detect the Apple M1 correctly
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
s0l0ist authored and kimlaine committed Jan 8, 2023
1 parent fd5591f commit 8b78973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/CheckCXXIntrinsicsHeader.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8b78973

Please sign in to comment.