Skip to content

Commit

Permalink
devel/googletest: convert TEST option to USES=cmake:testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeich committed May 18, 2021
1 parent 67ce935 commit 4602f4d
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions devel/googletest/Makefile
Expand Up @@ -15,20 +15,13 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
USE_GITHUB= yes
GH_ACCOUNT= google

USES= cmake compiler:c++11-lib
USES= cmake:testing compiler:c++11-lib python:test
USE_LDCONFIG= yes
CMAKE_ON= BUILD_SHARED_LIBS

OPTIONS_DEFINE= TEST

TEST_USES= python:build
TEST_CMAKE_BOOL= gtest_build_tests gmock_build_tests
TEST_TEST_TARGET= test
CMAKE_TESTING_ON= gtest_build_tests gmock_build_tests

post-install:
# Drop unused not preprocessed headers
${FIND} ${STAGEDIR}${PREFIX} -name '*.pump' -delete

pre-install-TEST-on: do-test

.include <bsd.port.mk>

0 comments on commit 4602f4d

Please sign in to comment.