From 03143d134152df3617c9581032852f5ddf8da27a Mon Sep 17 00:00:00 2001 From: smallmodel <15067410+smallmodel@users.noreply.github.com> Date: Sat, 19 Aug 2023 02:19:09 +0200 Subject: [PATCH] Added a compilation flag to debug memory --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9fc7a720..c0b248ae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,6 +22,10 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") add_compile_options(-Wno-pointer-bool-conversion) endif() +if(DEBUG_MEMORY) + add_definitions(-D_DEBUG_MEM) +endif() + IF("${TARGET_ARCH}" STREQUAL "i386") set(TARGET_ARCH_SUFFIX "x86") ELSE()