|
|
@ -18,8 +18,7 @@ if(NOT benchmark_FOUND)
|
|
|
|
include(FetchContent)
|
|
|
|
include(FetchContent)
|
|
|
|
set(BENCHMARK_ENABLE_GTEST_TESTS OFF CACHE INTERNAL "")
|
|
|
|
set(BENCHMARK_ENABLE_GTEST_TESTS OFF CACHE INTERNAL "")
|
|
|
|
# Do not build and run googlebenchmark tests
|
|
|
|
# Do not build and run googlebenchmark tests
|
|
|
|
FetchContent_Declare(googlebenchmark GIT_REPOSITORY https://github.com/google/benchmark.git GIT_TAG v1.5.2)
|
|
|
|
FetchContent_Declare(googlebenchmark GIT_REPOSITORY https://github.com/google/benchmark.git GIT_TAG v1.6.0)
|
|
|
|
|
|
|
|
|
|
|
|
FetchContent_MakeAvailable(googlebenchmark)
|
|
|
|
FetchContent_MakeAvailable(googlebenchmark)
|
|
|
|
else()
|
|
|
|
else()
|
|
|
|
message(FATAL_ERROR "GoogleBenchmark is missing. Use CMake >= 3.11 or download it")
|
|
|
|
message(FATAL_ERROR "GoogleBenchmark is missing. Use CMake >= 3.11 or download it")
|
|
|
|