Fixed #7749 (CMake gcc version >= 4.6 see https://github.com/danmar/cppcheck#compiling)
This commit is contained in:
parent
853ea69629
commit
2b2a1e7ab2
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue