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