aboutsummaryrefslogtreecommitdiffstats
path: root/community/wlcs/gtest.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/wlcs/gtest.patch')
-rw-r--r--community/wlcs/gtest.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/community/wlcs/gtest.patch b/community/wlcs/gtest.patch
new file mode 100644
index 0000000000..6d40e7add9
--- /dev/null
+++ b/community/wlcs/gtest.patch
@@ -0,0 +1,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()
+