You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
959 B

  1. --- a/cmake/install.cmake
  2. +++ b/cmake/install.cmake
  3. @@ -16,8 +16,8 @@ foreach(_library ${_protobuf_libraries})
  4. $<BUILD_INTERFACE:${protobuf_source_dir}/src>
  5. $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
  6. if (UNIX AND NOT APPLE)
  7. - set_property(TARGET ${_library}
  8. - PROPERTY INSTALL_RPATH "$ORIGIN")
  9. +# set_property(TARGET ${_library}
  10. +# PROPERTY INSTALL_RPATH "$ORIGIN")
  11. elseif (APPLE)
  12. set_property(TARGET ${_library}
  13. PROPERTY INSTALL_RPATH "@loader_path")
  14. @@ -34,8 +34,8 @@ if (protobuf_BUILD_PROTOC_BINARIES)
  15. BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR}
  16. COMPONENT protoc)
  17. if (UNIX AND NOT APPLE)
  18. - set_property(TARGET protoc
  19. - PROPERTY INSTALL_RPATH "$ORIGIN/../${CMAKE_INSTALL_LIBDIR}")
  20. +# set_property(TARGET protoc
  21. +# PROPERTY INSTALL_RPATH "$ORIGIN/../${CMAKE_INSTALL_LIBDIR}")
  22. elseif (APPLE)
  23. set_property(TARGET protoc
  24. PROPERTY INSTALL_RPATH "@loader_path/../lib")