summaryrefslogtreecommitdiff
path: root/indra/cmake/GoogleMock.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'indra/cmake/GoogleMock.cmake')
-rw-r--r--indra/cmake/GoogleMock.cmake7
1 files changed, 3 insertions, 4 deletions
diff --git a/indra/cmake/GoogleMock.cmake b/indra/cmake/GoogleMock.cmake
index 1f161ec4ff..23558364bb 100644
--- a/indra/cmake/GoogleMock.cmake
+++ b/indra/cmake/GoogleMock.cmake
@@ -13,15 +13,14 @@ set_target_include_dirs( ll::googlemock
if (LINUX)
# VWR-24366: gmock is underlinked, it needs gtest.
- set_target_libraries( ll::googlemock gmock gtest)
+ target_link_libraries( ll::googlemock INTERFACE gmock gtest)
elseif(WINDOWS)
- set_target_libraries( ll::googlemock gmock)
+ target_link_libraries( ll::googlemock INTERFACE gmock)
set_target_include_dirs( ll::googlemock
${LIBS_PREBUILT_DIR}/include
${LIBS_PREBUILT_DIR}/include/gmock)
-
elseif(DARWIN)
- set_target_libraries( ll::googlemock gmock gtest)
+ target_link_libraries( ll::googlemock INTERFACE gmock gtest)
endif(LINUX)