You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CMakeLists.txt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -521,8 +521,8 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
521
521
)
522
522
endif()
523
523
elseif (CMAKE_CXX_COMPILER_ID MATCHES"GNU")
524
-
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL"9.0")
525
-
message(WARNING "gcc 9.0 and above seemingly produce invalid binary code with O2 and O3 optimization levels. Optimization in release configurations will be downgraded to O1. It is strongly recommended to use clang.")
524
+
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL"9.0"AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS"14.0")
525
+
message(WARNING "This version of gcc may produce invalid binary code with O2 and O3 optimization levels. Optimization in release configurations will be downgraded to O1.")
0 commit comments