--- a/thirdparty/onnx/onnx/CMakeLists.txt
+++ b/thirdparty/onnx/onnx/CMakeLists.txt
@@ -680,6 +680,13 @@
   DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/ONNX
   COMPONENT dev)
+# When ONNX is built in-tree (e.g. inside OpenVINO), the Protobuf targets
+# come from a subdirectory that OpenVINO keeps out of install/export rules
+# (protobuf_INSTALL=OFF, managed by OpenVINO). onnx_proto links
+# libprotobuf-lite, so it must be part of the ONNXTargets export set.
+if(NOT Build_Protobuf AND TARGET libprotobuf-lite)
+  install(TARGETS libprotobuf-lite EXPORT ONNXTargets ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
+endif()
 install(EXPORT ONNXTargets
   DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/ONNX"
   NAMESPACE ONNX::
 )
