From cee8bfa7970ba6352b5e5bbb10fa0018b251ed5e Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 9 May 2018 14:18:23 -0400 Subject: [PATCH] CMakeLists: Add detection for Aarch64 compiler environments Just closes a small hole in architecture detection for the ARM family. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ba8948e5..e52a6fee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -93,10 +93,12 @@ if (MSVC) detect_architecture("_M_AMD64" x86_64) detect_architecture("_M_IX86" x86) detect_architecture("_M_ARM" ARM) + detect_architecture("_M_ARM64" Aarch64) else() detect_architecture("__x86_64__" x86_64) detect_architecture("__i386__" x86) detect_architecture("__arm__" ARM) + detect_architecture("__aarch64__" Aarch64) endif() if (NOT DEFINED ARCHITECTURE) set(ARCHITECTURE "GENERIC")