123456789101112131415161718192021222324252627282930 |
- diff --git a/CMakeLists.txt b/CMakeLists.txt
- index 0ce8dd4b..daccdbc3 100644
- --- a/CMakeLists.txt
- +++ b/CMakeLists.txt
- @@ -503,13 +503,13 @@ if(ONNX_USE_LITE_PROTO)
- if(TARGET protobuf::libprotobuf-lite)
- target_link_libraries(onnx_proto PUBLIC protobuf::libprotobuf-lite PRIVATE ${protobuf_ABSL_USED_TARGETS})
- else()
- - target_link_libraries(onnx_proto PUBLIC ${PROTOBUF_LITE_LIBRARIES})
- + target_link_libraries(onnx_proto PUBLIC ${PROTOBUF_LITE_LIBRARIES} ${protobuf_ABSL_USED_TARGETS})
- endif()
- else()
- if(TARGET protobuf::libprotobuf)
- target_link_libraries(onnx_proto PUBLIC protobuf::libprotobuf PRIVATE ${protobuf_ABSL_USED_TARGETS})
- else()
- - target_link_libraries(onnx_proto PUBLIC ${PROTOBUF_LIBRARIES})
- + target_link_libraries(onnx_proto PUBLIC ${PROTOBUF_LIBRARIES} ${protobuf_ABSL_USED_TARGETS})
- endif()
- endif()
- add_onnx_global_defines(onnx_proto)
- @@ -528,7 +528,7 @@ target_include_directories(onnx PUBLIC
- $<BUILD_INTERFACE:${ONNX_ROOT}>
- $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
- $<INSTALL_INTERFACE:include>)
- -target_link_libraries(onnx PUBLIC onnx_proto)
- +target_link_libraries(onnx PUBLIC onnx_proto ${protobuf_ABSL_USED_TARGETS})
- add_onnx_global_defines(onnx)
-
- if(ONNX_BUILD_PYTHON)
-
|