Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2021-05-13 14:45:05 +0300
committerJacques Lucke <jacques@blender.org>2021-05-13 14:45:05 +0300
commit23a788b8bd3f54b38755e3615a65837785ebedd5 (patch)
tree1128f5802c3b8347ad4a57390cef18a171998419 /source
parent64f1d5e7c17a46ba2faa5fe62baa539613a439a2 (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')
-rw-r--r--source/blender/modifiers/CMakeLists.txt12
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