Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 May 2021 22:24:58 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: de16e756bea5 - main - math/gravity: Fix the test target
Message-ID:  <202105132224.14DMOwDq083032@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=de16e756bea51dcbe3d4cdf0cb42c50973c01277

commit de16e756bea51dcbe3d4cdf0cb42c50973c01277
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2021-05-13 22:22:35 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2021-05-13 22:24:46 +0000

    math/gravity: Fix the test target
    
    Test executable is built by the project by default. This was
    changed in the patch and made conditional on a special cmake
    variable. The test target is now updated to reflect this.
---
 math/gravity/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/math/gravity/Makefile b/math/gravity/Makefile
index 3a91bf2c94f3..340e9aa3596b 100644
--- a/math/gravity/Makefile
+++ b/math/gravity/Makefile
@@ -36,6 +36,9 @@ CMAKE_ON=	Boost Ipopt
 LDFLAGS+=	-L${LOCALBASE}/lib/gcc${GCC_DEFAULT}
 
 do-test:
-	@${WRKSRC}/bin/Release/gravity_test
+	@cd ${BUILD_WRKSRC} && \
+		${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_EXAMPLES:BOOL=ON ${CMAKE_SOURCE_PATH} && \
+		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
+		${WRKSRC}/bin/Release/gravity_test
 
 .include <bsd.port.mk>



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