aboutsummaryrefslogtreecommitdiffstats
path: root/testing/wlcs/gtest.patch
blob: 6d40e7add9d6f1118e0fff72b534fee7ab5c2aa5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
https://github.com/MirServer/wlcs/pull/193

diff --git a/cmake/FindGtestGmock.cmake b/cmake/FindGtestGmock.cmake
index 230d988..34c514a 100644
--- a/cmake/FindGtestGmock.cmake
+++ b/cmake/FindGtestGmock.cmake
@@ -63,6 +63,9 @@ if (EXISTS ${GMOCK_SOURCE})
 else()
     # Assume gmock is no longer source, we'll find out soon enough if that's wrong
     add_custom_target(GMock)
+    if (NOT DEFINED GTEST_LIBRARY)
+        set(GTEST_LIBRARY ${GTEST_LIBRARIES})
+    endif()
     string(REPLACE gtest gmock GMOCK_LIBRARY ${GTEST_LIBRARY})
 endif()