Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Commit

Permalink
cmake: don't look for system install of benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeyeager committed Aug 21, 2017
1 parent 861d224 commit 7ded8c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 33 deletions.
10 changes: 2 additions & 8 deletions cmake/Dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,8 @@ if(BUILD_TEST)
add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/googletest)
include_directories(SYSTEM ${PROJECT_SOURCE_DIR}/third_party/googletest/googletest/include)

find_package(Benchmark)
if(Benchmark_FOUND)
list(APPEND Caffe2_DEPENDENCY_LIBS ${Benchmark_LIBRARIES})
include_directories(SYSTEM ${Benchmark_INCLUDE_DIRS})
else()
add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/benchmark)
include_directories(SYSTEM ${PROJECT_SOURCE_DIR}/third_party/benchmark/include)
endif()
add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/benchmark)
include_directories(SYSTEM ${PROJECT_SOURCE_DIR}/third_party/benchmark/include)
endif()

# ---[ LMDB
Expand Down
25 changes: 0 additions & 25 deletions cmake/Modules/FindBenchmark.cmake

This file was deleted.

0 comments on commit 7ded8c3

Please sign in to comment.