From a949ab71c9d670322750b8f6ec26db177e27c2f9 Mon Sep 17 00:00:00 2001 From: kepard Date: Sun, 15 Mar 2026 01:17:16 +0100 Subject: [PATCH] fix(openvino): use find_package(TBB) instead of hardcoded archive path The OpenVINO backend CMakeLists.txt hardcoded a TBB path relative to OpenVINO_DIR that assumes the official archive install layout: ${OpenVINO_DIR}/../3rdparty/tbb/lib/cmake/TBB/TBBConfig.cmake This path does not exist when OpenVINO is installed via apt on Ubuntu, which uses the system TBB and places cmake config files at: /usr/lib/x86_64-linux-gnu/cmake/TBB/ Replace with find_package(TBB REQUIRED) and document the -DTBB_DIR hint needed for apt-based installs. --- ggml/src/ggml-openvino/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml/src/ggml-openvino/CMakeLists.txt b/ggml/src/ggml-openvino/CMakeLists.txt index 175b585661..b7ae0cc04e 100644 --- a/ggml/src/ggml-openvino/CMakeLists.txt +++ b/ggml/src/ggml-openvino/CMakeLists.txt @@ -1,7 +1,7 @@ find_package(OpenVINO REQUIRED) find_package(OpenCL REQUIRED) -include("${OpenVINO_DIR}/../3rdparty/tbb/lib/cmake/TBB/TBBConfig.cmake") +find_package(TBB REQUIRED) file(GLOB_RECURSE GGML_HEADERS_OPENVINO "*.h" "*.hpp") file(GLOB_RECURSE GGML_SOURCES_OPENVINO "*.cpp")