Merge pull request #9844 from NixOS/pkg-config-gmock

Link both gmock and gtest, not just gtest
This commit is contained in:
John Ericson 2024-01-24 19:33:54 -05:00 committed by GitHub
commit 979b00bce9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -351,7 +351,7 @@ fi
AS_IF([test "$ENABLE_UNIT_TESTS" == "yes"],[
# Look for gtest.
PKG_CHECK_MODULES([GTEST], [gtest_main])
PKG_CHECK_MODULES([GTEST], [gtest_main gmock_main])
# Look for rapidcheck.
PKG_CHECK_MODULES([RAPIDCHECK], [rapidcheck rapidcheck_gtest])