Skip to content

Commit c03a5ac

Browse files
authored
prefer find_package for tbb (#747)
1 parent cae5a01 commit c03a5ac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

manifoldDeps.cmake

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
include(FetchContent)
22
include(GNUInstallDirs)
33
find_package(PkgConfig)
4+
if(MANIFOLD_PAR STREQUAL "TBB")
5+
find_package(TBB)
6+
endif()
47
if (PKG_CONFIG_FOUND)
58
pkg_check_modules(Clipper2 Clipper2)
6-
if(MANIFOLD_PAR STREQUAL "TBB")
9+
if(MANIFOLD_PAR STREQUAL "TBB" AND NOT TBB_FOUND)
710
pkg_check_modules(TBB tbb)
811
endif()
912
endif()

0 commit comments

Comments
 (0)