From 7d4eee2b1879e7e1224787761d3ef3bfe4a891d6 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 8 May 2013 12:55:23 +0000 Subject: add option to disable guardedalloc, helps for debugging memory errors since guardedalloc confuses them. The option cases a warning on build, since its ownly for experimental use. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 40bf4d80c3c..abc9dbb8e3e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -281,6 +281,9 @@ mark_as_advanced(WITH_MEM_JEMALLOC) option(WITH_CXX_GUARDEDALLOC "Enable GuardedAlloc for C++ memory allocation tracking (only enable for development)" OFF) mark_as_advanced(WITH_CXX_GUARDEDALLOC) +option(WITH_GUARDEDALLOC "Enable GuardedAlloc (DISABLE AT OWN RISK!)" ON) +mark_as_advanced(WITH_GUARDEDALLOC) + option(WITH_ASSERT_ABORT "Call abort() when raising an assertion through BLI_assert()" OFF) mark_as_advanced(WITH_ASSERT_ABORT) -- cgit v1.2.3