summarylogtreecommitdiffstats
path: root/GetArch.cmake.patch
blob: 1b9607496497cc494d1057a288531f0f542f6d08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/cmake/GetArch.cmake b/cmake/GetArch.cmake
index 0a5d7b1..97a8f9a 100644
--- a/cmake/GetArch.cmake
+++ b/cmake/GetArch.cmake
@@ -30,6 +30,11 @@ function (GetArch)
         set(ARCH "aarch64")
       endif ()
     endif ()
+    if (EXISTS /etc/arch-release)
+      if (ARCH STREQUAL "arm64")
+        set(ARCH "aarch64")
+      endif ()
+    endif ()
   else (NOT WIN32)
     # Should really be i386 since we are on win32. However, it's x86_64 for now,
     # see #2027