From 8512f7cb4c4832d8e81337eb0ac87a1217a48228 Mon Sep 17 00:00:00 2001 From: Timo Gurr Date: Sun, 30 Jan 2022 23:05:35 +0100 Subject: [PATCH] cmake: only download benchmarks if we build with it Since 70623d0b239b066aa7344b7675962f2ff1b0afce CMake tries to download benchmarks even if we pass -DBUILD_BENCHMARKS:BOOL=FALSE. --- extern/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extern/CMakeLists.txt b/extern/CMakeLists.txt index 4dd4c2b416..b4bfe2e3bd 100644 --- a/extern/CMakeLists.txt +++ b/extern/CMakeLists.txt @@ -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)