From de16e756bea51dcbe3d4cdf0cb42c50973c01277 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Thu, 13 May 2021 15:22:35 -0700 Subject: [PATCH] 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