From c81730541133d271c040df92600333cf188dc5a4 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Tue, 23 Jan 2024 15:37:15 -0500 Subject: [PATCH] Link both gmock and gtest, not just gtest GMock is not entirely header-only, we're finding. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index f46cff732..8c29c1e62 100644 --- a/configure.ac +++ b/configure.ac @@ -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])