Skip to content

Commit

Permalink
fixup! cmake: Add HARDENING option
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Jan 26, 2024
1 parent 15faf0b commit cad5f28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ if(HARDENING)

try_append_cxx_flags("-Wstack-protector" TARGET hardening_interface)
try_append_cxx_flags("-fstack-protector-all" TARGET hardening_interface)
try_append_linker_flag("-fstack-protector-all" TARGET hardening_interface)
try_append_cxx_flags("-fcf-protection=full" TARGET hardening_interface)

if(MINGW)
Expand Down

0 comments on commit cad5f28

Please sign in to comment.