Skip to content

Commit

Permalink
Fixed build targets
Browse files Browse the repository at this point in the history
  • Loading branch information
gkrivor committed Jan 15, 2025
1 parent c711aff commit cbe6ff2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/frontends/onnx/frontend/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ 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)
add_dependencies(${TARGET_NAME} 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)
Expand Down
4 changes: 2 additions & 2 deletions src/frontends/onnx/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,11 @@ add_dependencies(ov_onnx_frontend_tests onnx_fe_standalone_build_test)

# Files produced by protobuf may contain missing declarations
if(CMAKE_COMPILER_IS_GNUCXX OR OV_COMPILER_IS_CLANG OR (OV_COMPILER_IS_INTEL_LLVM AND UNIX))
target_compile_options(${TARGET_NAME} PRIVATE $<$<COMPILE_LANGUAGE:CXX>:-Wno-missing-declarations>)
target_compile_options(ov_onnx_frontend_tests PRIVATE $<$<COMPILE_LANGUAGE:CXX>:-Wno-missing-declarations>)
endif()
# Protobuf generates files which cause a following warnings
if(SUGGEST_OVERRIDE_SUPPORTED)
target_compile_options(${TARGET_NAME} PRIVATE $<$<COMPILE_LANGUAGE:CXX>:-Wno-suggest-override>)
target_compile_options(ov_onnx_frontend_tests PRIVATE $<$<COMPILE_LANGUAGE:CXX>:-Wno-suggest-override>)
endif()
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
# 4244 conversion from 'XXX' to 'YYY', possible loss of data
Expand Down

0 comments on commit cbe6ff2

Please sign in to comment.