mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 08:25:43 +08:00
Update bench CMakelists.txt
This commit is contained in:
parent
28e415fb3e
commit
ac6908a139
@ -16,7 +16,9 @@ if(NOT benchmark_FOUND)
|
|||||||
# User can fetch googlebenchmark
|
# User can fetch googlebenchmark
|
||||||
message(STATUS "Downloading GoogleBenchmark")
|
message(STATUS "Downloading GoogleBenchmark")
|
||||||
include(FetchContent)
|
include(FetchContent)
|
||||||
set(BENCHMARK_ENABLE_GTEST_TESTS OFF CACHE INTERNAL "")
|
|
||||||
|
# disable tests
|
||||||
|
set(BENCHMARK_ENABLE_TESTING 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.6.0)
|
FetchContent_Declare(googlebenchmark GIT_REPOSITORY https://github.com/google/benchmark.git GIT_TAG v1.6.0)
|
||||||
FetchContent_MakeAvailable(googlebenchmark)
|
FetchContent_MakeAvailable(googlebenchmark)
|
||||||
|
Loading…
Reference in New Issue
Block a user