summaryrefslogtreecommitdiff
path: root/absl/memory
diff options
context:
space:
mode:
authorGravatar Florin Crișan <florin.crisan@gmail.com>2021-06-10 02:26:40 +0300
committerGravatar GitHub <noreply@github.com>2021-06-09 19:26:40 -0400
commit8f92175783c9685045c50f227e7c10f1cddb4d58 (patch)
tree596ca145e582da14305a9b9d6723ec649448bedd /absl/memory
parentf72972654b69085b1d58fde04c618b77d3ac6935 (diff)
CMake: add option to use Google Test already installed on system (#969)
As of this change, you can use `-DABSL_USE_EXTERNAL_GOOGLETEST=ON -DABSL_FIND_GOOGLETEST=ON` to have Abseil use the standard CMake find_package(GTest) mechanism.
Diffstat (limited to 'absl/memory')
-rw-r--r--absl/memory/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/absl/memory/CMakeLists.txt b/absl/memory/CMakeLists.txt
index 78fb7e1b..9d50e1dc 100644
--- a/absl/memory/CMakeLists.txt
+++ b/absl/memory/CMakeLists.txt
@@ -37,7 +37,7 @@ absl_cc_test(
DEPS
absl::memory
absl::core_headers
- gmock_main
+ GTest::gmock_main
)
absl_cc_test(
@@ -51,5 +51,5 @@ absl_cc_test(
absl::memory
absl::config
absl::exception_safety_testing
- gmock_main
+ GTest::gmock_main
)