From cbe6ff2d1ead1a6fda15e8021a6ae4469e1d449a Mon Sep 17 00:00:00 2001 From: Georgy Krivoruchko Date: Wed, 15 Jan 2025 15:40:30 +0400 Subject: [PATCH] Fixed build targets --- src/frontends/onnx/frontend/CMakeLists.txt | 2 +- src/frontends/onnx/tests/CMakeLists.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontends/onnx/frontend/CMakeLists.txt b/src/frontends/onnx/frontend/CMakeLists.txt index ab927a9589a45a..e27c891d0e5add 100644 --- a/src/frontends/onnx/frontend/CMakeLists.txt +++ b/src/frontends/onnx/frontend/CMakeLists.txt @@ -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) diff --git a/src/frontends/onnx/tests/CMakeLists.txt b/src/frontends/onnx/tests/CMakeLists.txt index 4ddd5332b2b202..8b5e84367df543 100644 --- a/src/frontends/onnx/tests/CMakeLists.txt +++ b/src/frontends/onnx/tests/CMakeLists.txt @@ -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 $<$:-Wno-missing-declarations>) + target_compile_options(ov_onnx_frontend_tests PRIVATE $<$:-Wno-missing-declarations>) endif() # Protobuf generates files which cause a following warnings if(SUGGEST_OVERRIDE_SUPPORTED) - target_compile_options(${TARGET_NAME} PRIVATE $<$:-Wno-suggest-override>) + target_compile_options(ov_onnx_frontend_tests PRIVATE $<$:-Wno-suggest-override>) endif() if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") # 4244 conversion from 'XXX' to 'YYY', possible loss of data