aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/tensor/hnsw_index
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2020-06-29 14:53:04 +0200
committerTor Egge <Tor.Egge@broadpark.no>2020-06-29 14:53:04 +0200
commit5079736a0277175f888cee27d5cb3f905fb09029 (patch)
tree818289091620a428d5c9f01f66bfe2afb636ad8c /searchlib/src/tests/tensor/hnsw_index
parenta58193603b25fbf75fac825aa44e789cb711e70c (diff)
Use find_package to find gtest library.
Diffstat (limited to 'searchlib/src/tests/tensor/hnsw_index')
-rw-r--r--searchlib/src/tests/tensor/hnsw_index/CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/searchlib/src/tests/tensor/hnsw_index/CMakeLists.txt b/searchlib/src/tests/tensor/hnsw_index/CMakeLists.txt
index b6a87502fdf..0fd2f9a205a 100644
--- a/searchlib/src/tests/tensor/hnsw_index/CMakeLists.txt
+++ b/searchlib/src/tests/tensor/hnsw_index/CMakeLists.txt
@@ -1,10 +1,11 @@
# Copyright 2020 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+find_package(GTest REQUIRED)
vespa_add_executable(searchlib_hnsw_index_test_app TEST
SOURCES
hnsw_index_test.cpp
DEPENDS
searchlib
- gtest
+ GTest::GTest
)
vespa_add_test(NAME searchlib_hnsw_index_test_app COMMAND searchlib_hnsw_index_test_app)
@@ -13,5 +14,5 @@ vespa_add_executable(mt_stress_hnsw_app TEST
stress_hnsw_mt.cpp
DEPENDS
searchlib
- gtest
+ GTest::GTest
)