From 2dc43961758334d27569b6c40c66eb95662468e2 Mon Sep 17 00:00:00 2001 From: Eduard Valeyev Date: Wed, 25 Oct 2023 15:27:03 -0400 Subject: [PATCH] [cmake] madness-config: search for TBB using FindTBB module used PATHS/NO_DEFAULT_PATH options that are valid in CONFIG mode only --- cmake/madness-config.cmake.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/madness-config.cmake.in b/cmake/madness-config.cmake.in index f466f96bd0b..4913afd0e5d 100644 --- a/cmake/madness-config.cmake.in +++ b/cmake/madness-config.cmake.in @@ -165,7 +165,7 @@ if (TBB::tbb IN_LIST madness_MADWORLD_INTERFACE_LINK_LIBRARIES) find_dependency(TBB CONFIG REQUIRED COMPONENTS tbb PATHS "${_tbb_config_dir}" NO_DEFAULT_PATH) else() get_filename_component(_tbb_root_dir "@TBB_INCLUDE_DIR@/.." DIRECTORY) - find_dependency(TBB MODULE REQUIRED COMPONENTS tbb PATHS "${_tbb_root_dir}" NO_DEFAULT_PATH) + find_dependency(TBB REQUIRED COMPONENTS tbb PATHS "${_tbb_root_dir}" NO_DEFAULT_PATH) endif() endif() endif()