Skip to content

Commit

Permalink
Highlighted a build order between targets
Browse files Browse the repository at this point in the history
  • Loading branch information
gkrivor committed Nov 27, 2024
1 parent 65e4dcc commit 94775f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/frontends/onnx/frontend/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ ov_add_frontend(NAME onnx
FILEDESCRIPTION "FrontEnd to load and convert ONNX file format"
LINK_LIBRARIES openvino_onnx_common openvino::core::dev)

# Required to build it in a strict order in case onnx_common contains onnx headers
if(NOT ONNX_FOUND)
add_dependencies(openvino_onnx_frontend openvino_onnx_common)
endif()

set(ONNX_OPSET_VERSION 21 CACHE INTERNAL "Supported version of ONNX operator set")
target_compile_definitions(${TARGET_NAME} PRIVATE ONNX_OPSET_VERSION=${ONNX_OPSET_VERSION})

Expand Down
1 change: 1 addition & 0 deletions src/frontends/onnx/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ add_dependencies(ov_onnx_frontend_tests openvino_template_extension)

# Working with ModelProto
if(NOT ONNX_FOUND)
add_dependencies(ov_onnx_frontend_tests openvino_onnx_common)
target_link_libraries(ov_onnx_frontend_tests PRIVATE openvino_onnx_common)
endif()

Expand Down

0 comments on commit 94775f1

Please sign in to comment.