From 4bfc11e0f4b9835c74d848b08d2c85cd1a949619 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Tue, 8 Dec 2020 14:01:52 +0100 Subject: [PATCH] Do not build google benchmarks with gcc 11 until fix --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b7e749e65..40a7fbdfb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -113,7 +113,8 @@ if(ENABLE_FPGA) endif() option(ENABLE_BENCHMARKS "Build code snippets benchmarks" OFF) -if(CMAKE_VERSION VERSION_LESS 3.5.1) +if(CMAKE_VERSION VERSION_LESS 3.5.1 OR + (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "10.99")) set(ENABLE_BENCHMARKS OFF) endif()