diff options
-rwxr-xr-x | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 214c638a6..7e9fb09ea 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -836,6 +836,10 @@ if(CMAKE_COMPILER_IS_GNUCC OR CCMAKE_COMPILER_IS_GNUCXX) add_compiler_flag_if_available("-Wmissing-prototypes") add_compiler_flag_if_available("-Wstrict-prototypes") add_compiler_flag_if_available("-Wformat-security") + add_compiler_flag_if_available("-Werror=format-security") + add_compiler_flag_if_available("-fstack-protector-strong") + add_compiler_flag_if_available("-D_FORTIFY_SOURCE=2") + add_compiler_flag_if_available("-Wdate-time") endif() if (EXTRA_DEFINES) |