Link both gmock and gtest, not just gtest

GMock is not entirely header-only, we're finding.
This commit is contained in:
John Ericson 2024-01-23 15:37:15 -05:00
parent 212ba69e6f
commit c817305411

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])