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:
parent
d23355afc3
commit
a949ab71c9
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue