[Bf-blender-cvs] [23a788b8bd3] master: Modifiers: allow usage of tbb

Jacques Lucke noreply at git.blender.org
Thu May 13 14:20:19 CEST 2021


Commit: 23a788b8bd3f54b38755e3615a65837785ebedd5
Author: Jacques Lucke
Date:   Thu May 13 13:45:05 2021 +0200
Branches: master
https://developer.blender.org/rB23a788b8bd3f54b38755e3615a65837785ebedd5

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.

===================================================================

M	source/blender/modifiers/CMakeLists.txt

===================================================================

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



More information about the Bf-blender-cvs mailing list