From be39b725d18ac77efc237b6bf4a85d3cbd276fee Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Thu, 18 May 2017 14:35:50 +0200
Subject: [PATCH] [CMake] Check for minimum gcc 4.9.

---
 scripts/cmake/CompilerSetup.cmake | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/cmake/CompilerSetup.cmake b/scripts/cmake/CompilerSetup.cmake
index c313832dd53..01edffd63e0 100644
--- a/scripts/cmake/CompilerSetup.cmake
+++ b/scripts/cmake/CompilerSetup.cmake
@@ -52,8 +52,8 @@ endif()
 ### GNU C/CXX compiler
 if(COMPILER_IS_GCC)
     get_gcc_version(GCC_VERSION)
-    if(GCC_VERSION VERSION_LESS "4.8")
-        message(FATAL_ERROR "GCC minimum required version is 4.8! You are using ${GCC_VERSION}.")
+    if(GCC_VERSION VERSION_LESS "4.9")
+        message(FATAL_ERROR "GCC minimum required version is 4.9! You are using ${GCC_VERSION}.")
     endif()
     if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
         message(STATUS "Set GCC release flags")
-- 
GitLab