From df207922d2b13573122fe53907b5c9ec57eff814 Mon Sep 17 00:00:00 2001 From: Jon Petter Date: Wed, 30 Nov 2022 21:36:20 +0100 Subject: [PATCH] Added support for arch64. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 40e1b723..23c7898b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -187,7 +187,7 @@ endif() # Make sure we are compiling for an ARM system. # This is a verbose fail-fast in case we are trying to compile for non-ARM; # otherwise it would fail at `make` with obscure errors. -if(GNULINUX_PLATFORM AND (NOT CMAKE_SYSTEM_PROCESSOR MATCHES "^arm")) +if(GNULINUX_PLATFORM AND (NOT ((CMAKE_SYSTEM_PROCESSOR MATCHES "^arm") OR (CMAKE_SYSTEM_PROCESSOR MATCHES "^aarch")))) message(FATAL_ERROR "You are trying to compile for non-ARM (CMAKE_SYSTEM_PROCESSOR='${CMAKE_SYSTEM_PROCESSOR}')! see doc/building.md for cross compilation instructions.") endif()