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.
This commit is contained in:
Yuri Victorovich 2021-05-13 15:22:35 -07:00
parent e74901c007
commit de16e756be

View File

@ -36,6 +36,9 @@ CMAKE_ON= Boost Ipopt
LDFLAGS+= -L${LOCALBASE}/lib/gcc${GCC_DEFAULT} LDFLAGS+= -L${LOCALBASE}/lib/gcc${GCC_DEFAULT}
do-test: 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> .include <bsd.port.mk>