Explorar o código

cmake: mark warning disable for gcc 11 (#11301)

liamwhite %!s(int64=2) %!d(string=hai) anos
pai
achega
0e3a995bf4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/CMakeLists.txt

+ 1 - 1
src/CMakeLists.txt

@@ -134,7 +134,7 @@ else()
     endif()
 
     # GCC bugs
-    if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "12" AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
+    if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "11" AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
         # These diagnostics would be great if they worked, but are just completely broken
         # and produce bogus errors on external libraries like fmt.
         add_compile_options(