cmake: only download benchmarks if we build with it

Since 70623d0b23 CMake tries to download
benchmarks even if we pass -DBUILD_BENCHMARKS:BOOL=FALSE.
C++20
Timo Gurr 3 years ago
parent d4f46ed156
commit 8512f7cb4c

@ -211,7 +211,7 @@ endif()
add_subdirectory(smhasher)
if (NOT OPENMW_USE_SYSTEM_BENCHMARK)
if (BUILD_BENCHMARKS AND NOT OPENMW_USE_SYSTEM_BENCHMARK)
cmake_minimum_required(VERSION 3.11)
set(BENCHMARK_ENABLE_TESTING OFF)

Loading…
Cancel
Save