summarylogtreecommitdiffstats
path: root/020-openvino-use-protobuf-shared-libs.patch
blob: eb6341f2870f04a2a39540bf5c51fe53d93a07b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/thirdparty/dependencies.cmake
+++ b/thirdparty/dependencies.cmake
@@ -307,7 +307,7 @@ if(ENABLE_OV_PADDLE_FRONTEND OR ENABLE_OV_ONNX_FRONTEND OR ENABLE_OV_TF_FRONTEND
         # Note: Debian / Ubuntu / RHEL libprotobuf.a can only be used with -DBUILD_SHARED_LIBS=OFF
         # because they are compiled without -fPIC
         if(NOT DEFINED Protobuf_USE_STATIC_LIBS)
-            set(Protobuf_USE_STATIC_LIBS ON)
+            set(Protobuf_USE_STATIC_LIBS OFF)
         endif()
         if(CMAKE_VERBOSE_MAKEFILE)
             set(Protobuf_DEBUG ON)