File protobuf-no-rpath.patch of Package mingw64-protobuf

--- protobuf-4.30.2+git0.43e162681/cmake/install.cmake~	2025-05-11 13:15:14.641270057 +0200
+++ protobuf-4.30.2+git0.43e162681/cmake/install.cmake	2025-05-11 13:15:48.161272756 +0200
@@ -42,13 +42,6 @@
 endif ()
 
 foreach(_library ${_protobuf_libraries})
-  if (UNIX AND NOT APPLE)
-    set_property(TARGET ${_library}
-      PROPERTY INSTALL_RPATH "$ORIGIN")
-  elseif (APPLE)
-    set_property(TARGET ${_library}
-      PROPERTY INSTALL_RPATH "@loader_path")
-  endif()
   install(TARGETS ${_library} EXPORT protobuf-targets
     RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT ${_library}
     LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT ${_library}
@@ -68,15 +61,6 @@
         BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT upb-generators)
     endforeach ()
   endif ()
-  foreach (binary IN LISTS _protobuf_binaries)
-    if (UNIX AND NOT APPLE)
-      set_property(TARGET ${binary}
-        PROPERTY INSTALL_RPATH "$ORIGIN/../${CMAKE_INSTALL_LIBDIR}")
-    elseif (APPLE)
-      set_property(TARGET ${binary}
-        PROPERTY INSTALL_RPATH "@loader_path/../lib")
-    endif ()
-  endforeach ()
 endif (protobuf_BUILD_PROTOC_BINARIES)
 
 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/protobuf.pc ${CMAKE_CURRENT_BINARY_DIR}/protobuf-lite.pc DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
openSUSE Build Service is sponsored by