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)