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:
parent
d4f46ed156
commit
8512f7cb4c
1 changed files with 1 additions and 1 deletions
2
extern/CMakeLists.txt
vendored
2
extern/CMakeLists.txt
vendored
|
@ -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…
Reference in a new issue