cmake: Fix build with cmake-3.5.2. (#3117)

This commit is contained in:
orbea 2019-09-22 01:00:52 +00:00 committed by arcum42
parent 0967f9bcfc
commit d92e4343e3
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ if(GCC_VERSION VERSION_EQUAL "7.0" OR GCC_VERSION VERSION_EQUAL "7.1")
GCC7_BUG()
endif()
if(GCC_VERSION GREATER_EQUAL "9.0" AND GCC_VERSION LESS "9.2")
if((GCC_VERSION VERSION_EQUAL "9.0" OR GCC_VERSION VERSION_GREATER "9.0") AND GCC_VERSION LESS "9.2")
message(WARNING "
It looks like you are compiling with 9.0.x or 9.1.x. Using these versions is not recommended,
as there is a bug known to cause the compiler to segfault while compiling. See patch