From cf74d0fa2358b979fdeec7d6b95bfcad0e03b671 Mon Sep 17 00:00:00 2001 From: Nicky Date: Sat, 16 Oct 2021 14:38:45 +0200 Subject: [PATCH] Fail early in case someone wants to compile with GCC >= 10. --- indra/cmake/00-Common.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/indra/cmake/00-Common.cmake b/indra/cmake/00-Common.cmake index 8e62e95bac..fc4c493152 100644 --- a/indra/cmake/00-Common.cmake +++ b/indra/cmake/00-Common.cmake @@ -165,6 +165,11 @@ endif (WINDOWS) if (LINUX) set(CMAKE_SKIP_RPATH TRUE) + + if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 10.0.0 ) + message( FATAL_ERROR "GCC greater 9.4.0 is not supported. Recompile boost for support of GCC 10.0.0 and up." ) + endif() + # # And another hack for FORTIFY_SOURCE. Some distributions (for example Gentoo) define FORTIFY_SOURCE by default. # Check if this is the case, if yes, do not define it again.