science/openems: fix build on powerpc64*
Add FreeBSD names for 64-bit POWER to the check.
This commit is contained in:
parent
f1bc910789
commit
421f92a120
11
science/openems/files/patch-CMakeLists.txt
Normal file
11
science/openems/files/patch-CMakeLists.txt
Normal 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")
|
Loading…
Reference in New Issue
Block a user