From 4098be88db6d7999d40c865297d216d3e952550d Mon Sep 17 00:00:00 2001 From: marauder2k7 Date: Tue, 25 Jul 2023 09:34:13 +0100 Subject: [PATCH] Update CMakeLists.txt --- Engine/source/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Engine/source/CMakeLists.txt b/Engine/source/CMakeLists.txt index 798d57eb7..9f436eeae 100644 --- a/Engine/source/CMakeLists.txt +++ b/Engine/source/CMakeLists.txt @@ -16,7 +16,8 @@ forwardDef(TORQUE_SDL) if(TORQUE_TESTING) set(TORQUE_COMPILE_DEFINITIONS ${TORQUE_COMPILE_DEFINITIONS} TORQUE_TESTS_ENABLED) set(TORQUE_COMPILE_DEFINITIONS ${TORQUE_COMPILE_DEFINITIONS} "_VARIADIC_MAX=10") -set(TORQUE_COMPILE_DEFINITIONS ${TORQUE_COMPILE_DEFINITIONS} TORQUE_DISABLE_MEMORY_MANAGER) +# this is not efficient, do not let this define go out in production code. +set(TORQUE_COMPILE_DEFINITIONS ${TORQUE_COMPILE_DEFINITIONS} "MALLOC_CHECK_=1") endif() # On Windows we disable CRT Security warnings - this comes from recommendations to use non-portable functions.