From 0443bcd11e50e8a3b1e1dc33732a60565aebb6db Mon Sep 17 00:00:00 2001 From: Nathan Hughes Date: Thu, 20 Jul 2023 15:58:31 +0000 Subject: [PATCH] fixes issues with TBB not being found when building downstream packages --- cmake/Config.cmake.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/Config.cmake.in b/cmake/Config.cmake.in index cc2a7df8f1..36906d090d 100644 --- a/cmake/Config.cmake.in +++ b/cmake/Config.cmake.in @@ -21,6 +21,10 @@ else() find_dependency(Boost @BOOST_FIND_MINIMUM_VERSION@ COMPONENTS @BOOST_FIND_MINIMUM_COMPONENTS@) endif() +if(@GTSAM_USE_TBB@) + find_dependency(TBB 4.4 COMPONENTS tbb tbbmalloc) +endif() + if(@GTSAM_USE_SYSTEM_EIGEN@) find_dependency(Eigen3 REQUIRED) endif()