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

Link both gmock and gtest, not just gtest

(cherry picked from commit 979b00bce9)
Change-Id: Ic12d596e635057d67de277fbeb1602017e7623d0
This commit is contained in:
eldritch horrors 2024-03-04 08:47:39 +01:00
parent 2bb0a06346
commit 50ef364dbe

View file

@ -304,7 +304,7 @@ fi
if test "$ENABLE_TESTS" = yes; then if test "$ENABLE_TESTS" = yes; then
# Look for gtest. # Look for gtest.
PKG_CHECK_MODULES([GTEST], [gtest_main]) PKG_CHECK_MODULES([GTEST], [gtest_main gmock_main])
# Look for rapidcheck. # Look for rapidcheck.