Updated the GCC required version to 4.2 for '-Werror=format-security' to be used.
This commit is contained in:
parent
e786d4af78
commit
1fc66c0df7
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user