From 9baf5dcc540878dc0b15d8b945ac760d36fbf75d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Szil=C3=A1rd=20P=C3=A1ll?= Date: Tue, 20 Oct 2020 14:42:50 +0000 Subject: [PATCH] Allow gcc-9 on Power 9 Previous restriction ended up blacklisting gcc 9 and later whereas the intent was to only do so for version 10 and later. Worked around the version comparison quirk (and lack of >= operator). Refs #3380 Change-Id: If9f45fe77459c3d873eab3856126f1653efe8cdb --- cmake/gmxManageSimd.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/gmxManageSimd.cmake b/cmake/gmxManageSimd.cmake index a946ea6460..8dfd07db55 100644 --- a/cmake/gmxManageSimd.cmake +++ b/cmake/gmxManageSimd.cmake @@ -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() -- 2.22.0