From e65d66fe0449c8eeb0705d2531c109767d31fff0 Mon Sep 17 00:00:00 2001 From: hyc Date: Wed, 12 Apr 2017 23:54:33 +0100 Subject: [PATCH] Fix ARM64 identification The actual arch flag the compiler recognizes is "armv8-a". This is true for both gcc and clang. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ceebd49e..d584e41c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -80,9 +80,10 @@ if (ARM_TEST STREQUAL "arm") endif() endif() -if (ARM_ID STREQUAL "aarch64" OR ARM_ID STREQUAL "arm64") +if (ARM_ID STREQUAL "aarch64" OR ARM_ID STREQUAL "arm64" OR ARM_ID STREQUAL "armv8-a") set(ARM 1) set(ARM8 1) + set(ARCH "armv8-a") endif() if(WIN32 OR ARM)