Enables various mitigations. Position Independent Code (enables ASLR and is a prereq for sanitizers), DEP (for Windows), various mitigations against microarchitectural vulnrs that destroy performance ... stuff like this.
- Add this repo as a submodule into your repo.
- Point CMake to search for modules in it.
include(Hardening)
harden(<your target>)