From 7baeb99bc9c579767622d7357d357979190bdc03 Mon Sep 17 00:00:00 2001 From: Georgy Krivoruchko Date: Tue, 14 Jan 2025 13:50:06 +0400 Subject: [PATCH] Fixed onnx builds with pre-installed onnx --- src/frontends/onnx/frontend/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/frontends/onnx/frontend/CMakeLists.txt b/src/frontends/onnx/frontend/CMakeLists.txt index ae3c7716184211..ab927a9589a45a 100644 --- a/src/frontends/onnx/frontend/CMakeLists.txt +++ b/src/frontends/onnx/frontend/CMakeLists.txt @@ -79,7 +79,11 @@ ov_add_frontend(NAME onnx # Required to build it in a strict order in case onnx_common contains onnx headers if(NOT ONNX_FOUND) + message (STATUS "ONNX DBG Linked Frontend with own onnx_proto and onnx") add_dependencies(openvino_onnx_frontend openvino_onnx_common) +else() + message (STATUS "ONNX DBG Linked Frontend with system onnx_proto and onnx") + ov_link_system_libraries(${TARGET_NAME} PUBLIC onnx_proto onnx) endif() set(ONNX_OPSET_VERSION 21 CACHE INTERNAL "Supported version of ONNX operator set")