git: 3ef489e2c022 - main - math/gismo: Set TARGET_ARCHITECTURE on aarch64.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 14 Nov 2021 08:09:35 UTC
The branch main has been updated by mikael:
URL: https://cgit.FreeBSD.org/ports/commit/?id=3ef489e2c022073e87ec7b4f98642bc826574765
commit 3ef489e2c022073e87ec7b4f98642bc826574765
Author: Mikael Urankar <mikael@FreeBSD.org>
AuthorDate: 2021-11-14 07:45:24 +0000
Commit: Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2021-11-14 08:09:31 +0000
math/gismo: Set TARGET_ARCHITECTURE on aarch64.
Set the target architecture on aarch64 to fix the build.
CMake Error at cmake/OptimizeForArchitecture.cmake:1781 (message):
Unknown target architecture: "generic". Please set TARGET_ARCHITECTURE to
a supported value.
Approved by: portmgr (build fix blanket)
---
math/gismo/Makefile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/math/gismo/Makefile b/math/gismo/Makefile
index d00e4bda09bb..3c43f787c19d 100644
--- a/math/gismo/Makefile
+++ b/math/gismo/Makefile
@@ -20,4 +20,10 @@ CMAKE_TESTING_ON= GISMO_BUILD_UNITTESTS # one test is known to fail: https://git
GH_TUPLE= gismo:gsElasticity:7bfde6d:gsElasticity/extensions/gsElasticity \
gismo:gsUnitTest:7c42e58:gsUnitTest/extensions/gsUnitTest
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == aarch64
+CMAKE_ARGS+= -DTARGET_ARCHITECTURE="cortex-a53"
+.endif
+
+.include <bsd.port.post.mk>