Skip to content

Commit d3fdf10

Browse files
committed
run cmake error fix
1 parent 5e03471 commit d3fdf10

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libraries/multi_index_lru/tests/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
project(multi-index-lru-tests)
22

33
find_package(Boost REQUIRED)
4-
find_package(benchmark REQUIRED)
4+
if(NOT TARGET benchmark::benchmark)
5+
find_package(benchmark REQUIRED)
6+
endif()
57

68
file(GLOB_RECURSE MULTIINDEX_LRU_LIB_TESTS_SOURCES
79
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp

0 commit comments

Comments
 (0)