science/openems: fix build on powerpc64*

Add FreeBSD names for 64-bit POWER to the check.
This commit is contained in:
Piotr Kubaj 2021-10-01 14:39:19 +00:00
parent f1bc910789
commit 421f92a120

View File

@ -0,0 +1,11 @@
--- CMakeLists.txt.orig 2021-10-01 11:36:55 UTC
+++ CMakeLists.txt
@@ -157,7 +157,7 @@ elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "amd64")
set(ARCH "x86_64")
elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "AMD64")
set(ARCH "x86_64")
-elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "ppc64")
+elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(ppc64.*|PPC64.*|powerpc64.*)")
set(ARCH "ppc64")
elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "ppc64le")
set(ARCH "ppc64")