diff --git a/CMakeLists.txt b/CMakeLists.txt index 9fd47b9fe03..3db75e8b502 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -803,13 +803,16 @@ set (Seastar_PRIVATE_CXX_FLAGS -Wdeprecated -Wno-error=deprecated) -if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") - include (CheckGcc107852) - if (NOT Cxx_Compiler_BZ107852_Free) +if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND + FMT_VERSION VERSION_LESS 10.1.1 AND + CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 13.0.0) + # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107852 + # include (CheckGcc107852) + # if (NOT Cxx_Compiler_BZ107852_Free) list (APPEND Seastar_PRIVATE_CXX_FLAGS -Wno-error=stringop-overflow -Wno-error=array-bounds) - endif () + # endif () list (APPEND Seastar_PRIVATE_CXX_FLAGS -Wdeprecated-declarations -Wno-error=deprecated-declarations)