浏览代码

Update CMakeLists.txt

marauder2k7 2 年之前
父节点
当前提交
4098be88db
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Engine/source/CMakeLists.txt

+ 2 - 1
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.