diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-05-08 16:55:23 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-05-08 16:55:23 +0400 |
commit | 7d4eee2b1879e7e1224787761d3ef3bfe4a891d6 (patch) | |
tree | fa6ce41826f9c1e742520906afbff73928ed62f7 /intern/guardedalloc/CMakeLists.txt | |
parent | 357655af32204d5edf2b6257bd39168f3d1c9cc7 (diff) |
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.
Diffstat (limited to 'intern/guardedalloc/CMakeLists.txt')
-rw-r--r-- | intern/guardedalloc/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/intern/guardedalloc/CMakeLists.txt b/intern/guardedalloc/CMakeLists.txt index 4b6fe0fbc73..243dc462e65 100644 --- a/intern/guardedalloc/CMakeLists.txt +++ b/intern/guardedalloc/CMakeLists.txt @@ -46,6 +46,12 @@ if(WIN32 AND NOT UNIX) ) endif() +if (WITH_GUARDEDALLOC) + add_definitions(-DWITH_GUARDEDALLOC) +else() + message(WARNING "Disabling GuardedAlloc is experemental, use at own risk!") +endif() + blender_add_lib(bf_intern_guardedalloc "${SRC}" "${INC}" "${INC_SYS}") # Override C++ alloc, optional. |