From d92e4343e33a61013fb2391994890b55e4bb15c5 Mon Sep 17 00:00:00 2001 From: orbea Date: Sun, 22 Sep 2019 01:00:52 +0000 Subject: [PATCH] cmake: Fix build with cmake-3.5.2. (#3117) --- cmake/SearchForStuff.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/SearchForStuff.cmake b/cmake/SearchForStuff.cmake index afed571944..5d96972dca 100644 --- a/cmake/SearchForStuff.cmake +++ b/cmake/SearchForStuff.cmake @@ -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