diff --git a/CMakeLists.txt b/CMakeLists.txt index 972290a..687f639 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,7 @@ option(BUILD_DRIVER "Build the porch(1) driver" ON) set(warnings "-Wall -Wextra -Werror") if(CMAKE_BUILD_TYPE STREQUAL "Debug") + add_compile_definitions(_FORTIFY_SOURCE=2) add_compile_options(-fsanitize=address,undefined -fstrict-aliasing) add_link_options(-fsanitize=address,undefined -fstrict-aliasing) endif()