From 1fc66c0df7280dfcc7e3e5c1dd68cbae44aecac9 Mon Sep 17 00:00:00 2001 From: Markus Makela Date: Tue, 4 Nov 2014 10:49:28 +0200 Subject: [PATCH] Updated the GCC required version to 4.2 for '-Werror=format-security' to be used. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2adc84bf3..9662316fb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,7 +26,7 @@ set(CMAKE_C_FLAGS "-Wall -fPIC") set(CMAKE_CXX_FLAGS "-Wall -fPIC") set(DEBUG_FLAGS "-ggdb -pthread -pipe -Wformat -fstack-protector --param=ssp-buffer-size=4") -if((CMAKE_C_COMPILER_ID STREQUAL "GNU") AND (CMAKE_C_COMPILER_VERSION VERSION_GREATER 4.1)) +if((CMAKE_C_COMPILER_ID STREQUAL "GNU") AND (CMAKE_C_COMPILER_VERSION VERSION_GREATER 4.2)) message(STATUS "C Compiler supports: -Werror=format-security") set(DEBUG_FLAGS "${DEBUG_FLAGS} -Werror=format-security") endif()