diff --git a/CMakeLists.txt b/CMakeLists.txt index e00ce36d24..a11f884feb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -867,8 +867,8 @@ if(NOT MSVC) endif() else() # gcc only - if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13) - # Disable specific warnings due to GCC bug for versions >= 13 + if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 12) + # Disable specific warnings due to GCC bug for versions >= 12 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111073 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-stringop-overflow") endif()