From 23a788b8bd3f54b38755e3615a65837785ebedd5 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Thu, 13 May 2021 13:45:05 +0200 Subject: 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. --- source/blender/modifiers/CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 -- cgit v1.2.3