Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Nov 2021 08:09:35 GMT
From:      Mikael Urankar <mikael@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 3ef489e2c022 - main - math/gismo: Set TARGET_ARCHITECTURE on aarch64.
Message-ID:  <202111140809.1AE89Z2d010370@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111140809.1AE89Z2d010370>