From 79875d320ea4616e18f03ecc2e20fda7bb154812 Mon Sep 17 00:00:00 2001 From: David Seifert Date: Sun, 2 Sep 2018 16:25:18 +0200 Subject: [PATCH] pkgconfig: Unconditionally depend on GTest when using GMock * GTest is a required dependency for GMock, hence we always need to pull it in. --- googlemock/cmake/gmock.pc.in | 1 + googlemock/cmake/gmock_main.pc.in | 1 + 2 files changed, 2 insertions(+) diff --git a/googlemock/cmake/gmock.pc.in b/googlemock/cmake/gmock.pc.in index c4416426..2ef0fbca 100644 --- a/googlemock/cmake/gmock.pc.in +++ b/googlemock/cmake/gmock.pc.in @@ -5,5 +5,6 @@ Name: gmock Description: GoogleMock (without main() function) Version: @PROJECT_VERSION@ URL: https://github.com/google/googletest +Requires: gtest Libs: -L${libdir} -lgmock @CMAKE_THREAD_LIBS_INIT@ Cflags: -I${includedir} @GTEST_HAS_PTHREAD_MACRO@ @CMAKE_THREAD_LIBS_INIT@ diff --git a/googlemock/cmake/gmock_main.pc.in b/googlemock/cmake/gmock_main.pc.in index c377dba1..04658fe2 100644 --- a/googlemock/cmake/gmock_main.pc.in +++ b/googlemock/cmake/gmock_main.pc.in @@ -5,5 +5,6 @@ Name: gmock_main Description: GoogleMock (with main() function) Version: @PROJECT_VERSION@ URL: https://github.com/google/googletest +Requires: gmock Libs: -L${libdir} -lgmock_main @CMAKE_THREAD_LIBS_INIT@ Cflags: -I${includedir} @GTEST_HAS_PTHREAD_MACRO@ @CMAKE_THREAD_LIBS_INIT@