File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,9 @@ checksums rmd160 a37046afe248c835966a3b66e5d242b5f3b8dd30 \
2121 size 2059086
2222
2323github.tarball_from archive
24+ depends_test port:gtest
2425
26+ patchfiles gtest-patch.diff
2527
2628platform darwin {
2729 if {${os.major} < 14} {
Original file line number Diff line number Diff line change 1+ --- CMakeLists.txt_orig 2025-10-16 17:31:07
2+ +++ CMakeLists.txt 2025-10-16 17:31:59
3+ @@ -96,12 +96,17 @@
4+ if (PHMAP_BUILD_TESTS)
5+
6+ if (NOT PHMAP_GTEST_LIBS)
7+ - include(cmake/DownloadGTest.cmake)
8+ + find_package(GTest CONFIG)
9+ + if (GTest_FOUND)
10+ + set(PHMAP_GTEST_LIBS GTest::gmock_main)
11+ + else()
12+ + include(cmake/DownloadGTest.cmake)
13+
14+ - check_target(gtest)
15+ - check_target(gtest_main)
16+ - check_target(gmock)
17+ - set(PHMAP_GTEST_LIBS gmock_main)
18+ + check_target(gtest)
19+ + check_target(gtest_main)
20+ + check_target(gmock)
21+ + set(PHMAP_GTEST_LIBS gmock_main)
22+ + endif()
23+ endif()
24+
25+ enable_testing()
You can’t perform that action at this time.
0 commit comments