CMakeLists: Add detection for Aarch64 compiler environments

Just closes a small hole in architecture detection for the ARM family.
This commit is contained in:
Lioncash 2018-05-09 14:18:23 -04:00 committed by MerryMage
parent f745eb28bf
commit ed11c7d904

View file

@ -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")