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.
This commit is contained in:
kepard 2026-03-15 01:17:16 +01:00
parent d23355afc3
commit a949ab71c9
1 changed files with 1 additions and 1 deletions

View File

@ -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")