aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--c/blake3-config.cmake.in11
1 files changed, 10 insertions, 1 deletions
diff --git a/c/blake3-config.cmake.in b/c/blake3-config.cmake.in
index 071552b..92cf395 100644
--- a/c/blake3-config.cmake.in
+++ b/c/blake3-config.cmake.in
@@ -1,5 +1,14 @@
@PACKAGE_INIT@
+include(CMakeFindDependencyMacro)
+
+# Remember TBB option state
+set(BLAKE3_USE_TBB @BLAKE3_USE_TBB@)
+
+if(BLAKE3_USE_TBB)
+ find_dependency(TBB @TBB_VERSION@)
+endif()
+
include("${CMAKE_CURRENT_LIST_DIR}/blake3-targets.cmake")
-check_required_components(blake3) \ No newline at end of file
+check_required_components(blake3)