From: Martin Kroeker Date: Mon, 31 Aug 2020 18:02:08 +0000 (+0200) Subject: Handle Apple labeling armv8 as arm64 rather than aarch64 X-Git-Tag: upstream/0.3.21~25^2~65^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5feb087c05beff18208c31b369d74dc3badeada3;p=platform%2Fupstream%2Fopenblas.git Handle Apple labeling armv8 as arm64 rather than aarch64 --- diff --git a/cmake/system_check.cmake b/cmake/system_check.cmake index 4382ffc..511a7c7 100644 --- a/cmake/system_check.cmake +++ b/cmake/system_check.cmake @@ -54,14 +54,14 @@ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "amd64.*|x86_64.*|AMD64.*") endif() elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "i686.*|i386.*|x86.*|amd64.*|AMD64.*") set(X86 1) -elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm.*|ARM.*)") - set(ARM 1) -elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64.*|AARCH64.*)") +elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64.*|AARCH64.*|arm64.*|ARM64.*)") if("${CMAKE_SIZEOF_VOID_P}" EQUAL "8") set(ARM64 1) else() set(ARM 1) endif() +elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm.*|ARM.*)") + set(ARM 1) elseif (${CMAKE_CROSSCOMPILING}) if (${TARGET} STREQUAL "CORE2") if (NOT BINARY)