diff options
author | Jacques Lucke <jacques@blender.org> | 2020-07-24 13:26:11 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-07-24 13:26:11 +0300 |
commit | 236ca8fbe84575504f6ae80aec63c8059b875ef0 (patch) | |
tree | 5a889765ba6363b99b1d27231594592013f3263f /tests/gtests/testing/CMakeLists.txt | |
parent | 38863924305367eaae65d9447f8a306b86d6ea44 (diff) |
Allocator: make leak detection work with static variables
When definining static variables that own memory, you should
use the "construct on first use" idiom. Otherwise, you'll get
a warning when Blender exits.
More details are provided in D8354.
Differential Revision: https://developer.blender.org/D8354
Diffstat (limited to 'tests/gtests/testing/CMakeLists.txt')
-rw-r--r-- | tests/gtests/testing/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/gtests/testing/CMakeLists.txt b/tests/gtests/testing/CMakeLists.txt index c8a7f487c5d..d557b27f272 100644 --- a/tests/gtests/testing/CMakeLists.txt +++ b/tests/gtests/testing/CMakeLists.txt @@ -28,6 +28,7 @@ set(INC ${GLOG_INCLUDE_DIRS} ${GFLAGS_INCLUDE_DIRS} ../../../extern/gtest/include + ../../../intern/guardedalloc ) set(INC_SYS @@ -40,6 +41,7 @@ set(SRC ) set(LIB + bf_intern_guardedalloc ) blender_add_lib(bf_testing_main "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") |