|
@ -0,0 +1,24 @@ |
|
|
|
|
|
--- a/cmake/install.cmake
|
|
|
|
|
|
+++ b/cmake/install.cmake
|
|
|
|
|
|
@@ -16,8 +16,8 @@ foreach(_library ${_protobuf_libraries})
|
|
|
|
|
|
$<BUILD_INTERFACE:${protobuf_source_dir}/src> |
|
|
|
|
|
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>) |
|
|
|
|
|
if (UNIX AND NOT APPLE) |
|
|
|
|
|
- set_property(TARGET ${_library}
|
|
|
|
|
|
- PROPERTY INSTALL_RPATH "$ORIGIN")
|
|
|
|
|
|
+# set_property(TARGET ${_library}
|
|
|
|
|
|
+# PROPERTY INSTALL_RPATH "$ORIGIN")
|
|
|
|
|
|
elseif (APPLE) |
|
|
|
|
|
set_property(TARGET ${_library} |
|
|
|
|
|
PROPERTY INSTALL_RPATH "@loader_path") |
|
|
|
|
|
@@ -32,8 +32,8 @@ if (protobuf_BUILD_PROTOC_BINARIES)
|
|
|
|
|
|
install(TARGETS protoc EXPORT protobuf-targets |
|
|
|
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT protoc) |
|
|
|
|
|
if (UNIX AND NOT APPLE) |
|
|
|
|
|
- set_property(TARGET protoc
|
|
|
|
|
|
- PROPERTY INSTALL_RPATH "$ORIGIN/../lib")
|
|
|
|
|
|
+# set_property(TARGET protoc
|
|
|
|
|
|
+# PROPERTY INSTALL_RPATH "$ORIGIN/../lib")
|
|
|
|
|
|
elseif (APPLE) |
|
|
|
|
|
set_property(TARGET protoc |
|
|
|
|
|
PROPERTY INSTALL_RPATH "@loader_path/../lib") |