From 5fb986bde1d5c6600ec5b0d4ac8f1f4677aa31c4 Mon Sep 17 00:00:00 2001 From: lethosor Date: Mon, 7 Nov 2016 15:07:27 -0500 Subject: [PATCH] Warn for GCC versions before 4.8 --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 61b9dce12..4a47d0721 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,6 +32,9 @@ macro(CHECK_GCC COMPILER_PATH) # http://developerblog.redhat.com/2015/02/05/gcc5-and-the-c11-abi/ add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0) endif() + if(${GCC_VERSION_OUT} VERSION_LESS "4.8") + message(WARNING "You are using GCC < 4.8 (detected version: ${GCC_VERSION_OUT}). Support for GCC versions before 4.8 may be removed in the future.") + endif() endmacro() if(UNIX)