mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-24 18:11:44 +01:00
17 lines
548 B
Diff
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()
|
|
|