From e153be0be2fb8df6656292daab3fa59963c76737 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Tue, 13 Feb 2024 17:51:51 -0800 Subject: Let memory allocators trap by default when attempting to allocate beyond capacity. --- mempool/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mempool/CMakeLists.txt') diff --git a/mempool/CMakeLists.txt b/mempool/CMakeLists.txt index fe3e2a5..8c9dd30 100644 --- a/mempool/CMakeLists.txt +++ b/mempool/CMakeLists.txt @@ -10,6 +10,9 @@ add_library(mempool target_include_directories(mempool PUBLIC include) +target_link_libraries(mempool PRIVATE + cassert) + target_compile_options(mempool PRIVATE -Wall -Wextra) # Test -- cgit v1.2.3