diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-10-09 12:46:02 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-10-09 12:46:02 +0400 |
commit | 49bc31067163474729755c8a9dbd543ba3744d3f (patch) | |
tree | f827273ee51caa8f7bf136f749b6bd4ac9f3dca2 /extern/libmv/CMakeLists.txt | |
parent | 22a30f78f2d7928095d8158f3c54d726771ba24d (diff) |
Move guarded objetc allocation to a guardedalloc header
Also made libmv-capi use guarded objetc allocation.
Run into some suspecious cases when it was not so
clear whether memory is being freed or not.
Now we'll know for sure whether there're leaks or not :)
Having this macros in a guardedalloc header helps
using them in other areas (for now it's OCIO and libmv,
but in the future it'll be more places).
Diffstat (limited to 'extern/libmv/CMakeLists.txt')
-rw-r--r-- | extern/libmv/CMakeLists.txt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/extern/libmv/CMakeLists.txt b/extern/libmv/CMakeLists.txt index 2c9a21965f0..ae5cfd0cb1d 100644 --- a/extern/libmv/CMakeLists.txt +++ b/extern/libmv/CMakeLists.txt @@ -37,10 +37,13 @@ set(SRC if(WITH_LIBMV) add_definitions( -DWITH_LIBMV + -DWITH_LIBMV_GUARDED_ALLOC + -DGOOGLE_GLOG_DLL_DECL= ) list(APPEND INC third_party/ceres/include + ../../intern/guardedalloc ) set(INC_SYS @@ -224,10 +227,6 @@ if(WITH_LIBMV) third_party/glog/src ) endif() - - add_definitions( - -DGOOGLE_GLOG_DLL_DECL= - ) else() list(APPEND SRC libmv-capi_stub.cc |