1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-30 01:45:38 +00:00

cmake: only download benchmarks if we build with it

Since 70623d0b23 CMake tries to download
benchmarks even if we pass -DBUILD_BENCHMARKS:BOOL=FALSE.
This commit is contained in:
Timo Gurr 2022-01-30 23:05:35 +01:00
parent d4f46ed156
commit 8512f7cb4c

View file

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