Allow gcc-9 on Power 9
[alexxy/gromacs.git] / cmake / gmxManageSimd.cmake
index a946ea6460e3d6878f8bd8f379cbbf07253152ad..8dfd07db559dd6c1d98e10b0738bd87b9ab8c77f 100644 (file)
@@ -289,7 +289,7 @@ elseif(GMX_SIMD_ACTIVE STREQUAL "IBM_VSX")
 
     # IBM_VSX and gcc > 9 do not work together, so we need to prevent people from
     # choosing a combination that might fail. Issue #3380.
-    if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "9")
+    if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 10)
         message(FATAL_ERROR "IBM_VSX does not work together with gcc > 9. Disable SIMD support (slower), or use an older version of the GNU compiler")
     endif()