From 2b2a1e7ab2122344c42e3d03161129f79c36aaa2 Mon Sep 17 00:00:00 2001 From: Frank Zingsheim Date: Sat, 29 Oct 2016 12:55:50 +0200 Subject: [PATCH] Fixed #7749 (CMake gcc version >= 4.6 see https://github.com/danmar/cppcheck#compiling) --- cmake/compileroptions.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/compileroptions.cmake b/cmake/compileroptions.cmake index 54fc3eb67..f6649328d 100644 --- a/cmake/compileroptions.cmake +++ b/cmake/compileroptions.cmake @@ -34,8 +34,8 @@ endif() if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") execute_process(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION) - if (NOT (GCC_VERSION VERSION_GREATER 4.7 OR GCC_VERSION VERSION_EQUAL 4.7)) - message(FATAL_ERROR "${PROJECT_NAME} c++11 support requires g++ 4.7 or greater, but it is ${GCC_VERSION}") + if (NOT (GCC_VERSION VERSION_GREATER 4.6 OR GCC_VERSION VERSION_EQUAL 4.6)) + message(FATAL_ERROR "${PROJECT_NAME} c++11 support requires g++ 4.6 or greater, but it is ${GCC_VERSION}") endif () set(EXTRA_C_FLAGS "${EXTRA_C_FLAGS} -Wabi")