diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -44,6 +44,8 @@ add_compiler_flag(-fPIE) add_linker_flag(-pie) endif() + + add_cxx_compiler_flag(-fstack-protector-all -Wstack-protector) endif() # Enable warning