Skip to content

Commit

Permalink
Added debbug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gkrivor committed Nov 27, 2024
1 parent 84eee03 commit 05508a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/frontends/onnx/onnx_common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ source_group("include" FILES ${PUBLIC_HEADERS} ${PUBLIC_HEADERS})
# Create static library

if(NOT ONNX_FOUND)
message (STATUS "ONNX DBG Generating own onnx headers")
# Generate protobuf file on build time for each '.proto' file in src/proto
set(protofiles_root_dir "${CMAKE_CURRENT_SOURCE_DIR}/src/proto")
file(GLOB_RECURSE proto_files ${protofiles_root_dir}/*.proto)
Expand Down Expand Up @@ -58,6 +59,7 @@ target_include_directories(${TARGET_NAME}
target_link_libraries(${TARGET_NAME} PRIVATE openvino::runtime openvino::util)

if(ONNX_FOUND)
message (STATUS "ONNX DBG Linked system onnx_proto and onnx")
ov_link_system_libraries(${TARGET_NAME} PUBLIC onnx_proto onnx)
else()
target_compile_definitions(${TARGET_NAME} PUBLIC ONNX_NAMESPACE=${OV_ONNX_NAMESPACE})
Expand All @@ -68,6 +70,7 @@ else()
set(protobuf_target_name libprotobuf)
endif()

message (STATUS "ONNX DBG Linked system Protobuf: " ${protobuf_target_name})
ov_link_system_libraries(${TARGET_NAME} PUBLIC ${protobuf_target_name})
endif()

Expand Down

0 comments on commit 05508a1

Please sign in to comment.