diff options
author | Jacques Lucke <jacques@blender.org> | 2021-05-13 14:45:05 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-05-13 14:45:05 +0300 |
commit | 23a788b8bd3f54b38755e3615a65837785ebedd5 (patch) | |
tree | 1128f5802c3b8347ad4a57390cef18a171998419 /source/blender/modifiers/CMakeLists.txt | |
parent | 64f1d5e7c17a46ba2faa5fe62baa539613a439a2 (diff) |
Modifiers: allow usage of tbb
Before, any usage of tbb wrappers used in modifier code would
just fall back to the non-threaded non-tbb version.
We ran into this issue a couple of times in patches.
Diffstat (limited to 'source/blender/modifiers/CMakeLists.txt')
-rw-r--r-- | source/blender/modifiers/CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/modifiers/CMakeLists.txt b/source/blender/modifiers/CMakeLists.txt index 6ac2629c006..c19467945f9 100644 --- a/source/blender/modifiers/CMakeLists.txt +++ b/source/blender/modifiers/CMakeLists.txt @@ -193,6 +193,18 @@ if(WITH_GMP) ) endif() +if(WITH_TBB) + add_definitions(-DWITH_TBB) + + list(APPEND INC_SYS + ${TBB_INCLUDE_DIRS} + ) + + list(APPEND LIB + ${TBB_LIBRARIES} + ) +endif() + if(WITH_OPENVDB) list(APPEND INC ../../../intern/openvdb |