diff --git a/cmake/templates/OpenVINOConfig.cmake.in b/cmake/templates/OpenVINOConfig.cmake.in index 61cd58f5b209d7..7dda80d8a312fd 100644 --- a/cmake/templates/OpenVINOConfig.cmake.in +++ b/cmake/templates/OpenVINOConfig.cmake.in @@ -404,7 +404,7 @@ macro(_ov_find_intel_gpu_dependencies) unset(extra_args) unset(onednn_gpu_lib) else() - set(onednn_gpu_lib_path "@ONEDNN_GPU_LIB_PATH@") + set_and_check(onednn_gpu_lib_path "@PACKAGE_ONEDNN_GPU_LIB_PATH@") endif() set_target_properties(openvino::onednn_gpu_tgt PROPERTIES diff --git a/src/cmake/openvino.cmake b/src/cmake/openvino.cmake index c00c0d666ec9c3..302c263b024e7e 100644 --- a/src/cmake/openvino.cmake +++ b/src/cmake/openvino.cmake @@ -160,6 +160,9 @@ if(DNNL_USE_ACL) list(APPEND BUILD_PATH_VARS "FIND_ACL_PATH;CMAKE_ARCHIVE_OUTPUT_DIRECTORY") set(FIND_ACL_PATH "${intel_cpu_thirdparty_SOURCE_DIR}") endif() +if(ENABLE_ONEDNN_FOR_GPU) + list(APPEND BUILD_PATH_VARS "ONEDNN_GPU_LIB_PATH") +endif() set(PUBLIC_HEADERS_DIR "${OpenVINO_SOURCE_DIR}/src/inference/include") set(IE_INCLUDE_DIR "${PUBLIC_HEADERS_DIR}/ie")