CMakeLists: Add detection for Aarch64 compiler environments
Just closes a small hole in architecture detection for the ARM family.
This commit is contained in:
parent
f745eb28bf
commit
ed11c7d904
1 changed files with 2 additions and 0 deletions
|
@ -93,10 +93,12 @@ if (MSVC)
|
||||||
detect_architecture("_M_AMD64" x86_64)
|
detect_architecture("_M_AMD64" x86_64)
|
||||||
detect_architecture("_M_IX86" x86)
|
detect_architecture("_M_IX86" x86)
|
||||||
detect_architecture("_M_ARM" ARM)
|
detect_architecture("_M_ARM" ARM)
|
||||||
|
detect_architecture("_M_ARM64" Aarch64)
|
||||||
else()
|
else()
|
||||||
detect_architecture("__x86_64__" x86_64)
|
detect_architecture("__x86_64__" x86_64)
|
||||||
detect_architecture("__i386__" x86)
|
detect_architecture("__i386__" x86)
|
||||||
detect_architecture("__arm__" ARM)
|
detect_architecture("__arm__" ARM)
|
||||||
|
detect_architecture("__aarch64__" Aarch64)
|
||||||
endif()
|
endif()
|
||||||
if (NOT DEFINED ARCHITECTURE)
|
if (NOT DEFINED ARCHITECTURE)
|
||||||
set(ARCHITECTURE "GENERIC")
|
set(ARCHITECTURE "GENERIC")
|
||||||
|
|
Loading…
Reference in a new issue