diff options
author | Florin Crișan <florin.crisan@gmail.com> | 2021-06-10 02:26:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-09 19:26:40 -0400 |
commit | 8f92175783c9685045c50f227e7c10f1cddb4d58 (patch) | |
tree | 596ca145e582da14305a9b9d6723ec649448bedd /absl/hash/CMakeLists.txt | |
parent | f72972654b69085b1d58fde04c618b77d3ac6935 (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/hash/CMakeLists.txt')
-rw-r--r-- | absl/hash/CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/absl/hash/CMakeLists.txt b/absl/hash/CMakeLists.txt index b43bfa54..c82f66f0 100644 --- a/absl/hash/CMakeLists.txt +++ b/absl/hash/CMakeLists.txt @@ -52,7 +52,7 @@ absl_cc_library( absl::meta absl::strings absl::variant - gmock + GTest::gmock TESTONLY ) @@ -72,7 +72,7 @@ absl_cc_test( absl::spy_hash_state absl::meta absl::int128 - gmock_main + GTest::gmock_main ) absl_cc_library( @@ -113,7 +113,7 @@ absl_cc_test( ${ABSL_TEST_COPTS} DEPS absl::city - gmock_main + GTest::gmock_main ) absl_cc_library( @@ -141,5 +141,5 @@ absl_cc_test( DEPS absl::wyhash absl::strings - gmock_main + GTest::gmock_main ) |