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()