Skip to content

Commit

Permalink
Fixed onnx builds with pre-installed onnx
Browse files Browse the repository at this point in the history
  • Loading branch information
gkrivor committed Jan 14, 2025
1 parent 0debedf commit 7baeb99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/frontends/onnx/frontend/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 7baeb99

Please sign in to comment.