Skip to content

Commit c8e8965

Browse files
committed
opensubdiv: add tbb
1 parent d6c549d commit c8e8965

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

conan-profiles/conan-profile-common

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ embree3/*:sse2=True
3535
embree3/*:sse42=True
3636
embree3/*:avx=True
3737
embree3/*:neon=True
38+
opensubdiv/*:with_tbb=True
3839
opensubdiv/*:with_omp=True
3940
fmt/*:header_only=True
4041
spdlog/*:header_only=True

local-conan-recipes/opensubdiv/conanfile.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,9 @@ def package_info(self):
196196
self.cpp_info.components["osdcpu"].set_property("cmake_target_name", f"OpenSubdiv::osdcpu{target_suffix}")
197197
self.cpp_info.components["osdcpu"].libs = ["osdCPU"]
198198
if self.options.with_tbb:
199-
self.cpp_info.components["osdcpu"].requires = ["onetbb::onetbb"]
199+
self.cpp_info.components["osdcpu"].requires += ["onetbb::onetbb"]
200+
if self.options.with_omp and self.settings.os == "Macos":
201+
self.cpp_info.components["osdcpu"].requires += ["llvm-openmp::llvm-openmp"]
200202

201203
if self._osd_gpu_enabled:
202204
self.cpp_info.components["osdgpu"].set_property("cmake_target_name", f"OpenSubdiv::osdgpu{target_suffix}")

0 commit comments

Comments
 (0)