Changed the requirement of -Werror=format-security to GCC version 4.2 or greater instead of only versions greater than 4.2.
This commit is contained in:
parent
1fc66c0df7
commit
99707853be
@ -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.2))
|
||||
if((CMAKE_C_COMPILER_ID STREQUAL "GNU") AND (NOT (CMAKE_C_COMPILER_VERSION VERSION_LESS 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