Merge branch 'fix-gcc-11' into next

This commit is contained in:
Carles Fernandez 2020-12-09 14:45:51 +01:00
commit c47ef879da
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
1 changed files with 2 additions and 1 deletions

View File

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