aboutsummaryrefslogtreecommitdiffstats
path: root/community/wlcs/gtest.patch
diff options
context:
space:
mode:
authorLuca Weiss <luca@z3ntu.xyz>2021-04-14 22:20:11 +0200
committerAriadne Conill <ariadne@dereferenced.org>2021-04-20 01:15:57 +0000
commit9e028cd6923e0ccd82d8b5ab23c548c4ebe56659 (patch)
treefe89bbd997f37a5c2da827eebdb24b42d5b5624e /community/wlcs/gtest.patch
parent6aed75785b5725cb545b3a0d6dd6ab9e4fab69f9 (diff)
downloadaports-9e028cd6923e0ccd82d8b5ab23c548c4ebe56659.tar.gz
aports-9e028cd6923e0ccd82d8b5ab23c548c4ebe56659.tar.bz2
aports-9e028cd6923e0ccd82d8b5ab23c548c4ebe56659.tar.xz
community/wlcs: move from testing
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()
+