aports/testing/wlcs/gtest.patch
2021-04-04 20:51:21 +00:00

17 lines
548 B
Diff

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()