Update to google benchmark to v1.6.0

This commit is contained in:
Gabi Melman 2021-12-09 21:51:16 +02:00 committed by gabime
parent ab2e72340a
commit 28e415fb3e

View File

@ -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")