2020-05-27 08:11:06 +03:00
|
|
|
diff --git a/cmake/install.cmake b/cmake/install.cmake
|
2021-09-22 13:09:55 -07:00
|
|
|
index ef5bb13..e2d4acb 100644
|
2020-05-27 08:11:06 +03:00
|
|
|
--- a/cmake/install.cmake
|
|
|
|
+++ b/cmake/install.cmake
|
2021-09-22 13:09:55 -07:00
|
|
|
@@ -33,7 +33,7 @@ if (protobuf_BUILD_PROTOC_BINARIES)
|
|
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
|
|
BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
|
|
COMPONENT protoc)
|
2020-05-27 08:11:06 +03:00
|
|
|
- if (UNIX AND NOT APPLE)
|
|
|
|
+ if (UNIX AND NOT APPLE AND NOT protobuf_MSVC_STATIC_RUNTIME)
|
|
|
|
set_property(TARGET protoc
|
|
|
|
PROPERTY INSTALL_RPATH "$ORIGIN/../${CMAKE_INSTALL_LIBDIR}")
|
|
|
|
elseif (APPLE)
|