2020-05-27 13:11:06 +08:00
|
|
|
diff --git a/cmake/install.cmake b/cmake/install.cmake
|
2021-09-23 04:09:55 +08:00
|
|
|
index ef5bb13..e2d4acb 100644
|
2020-05-27 13:11:06 +08:00
|
|
|
--- a/cmake/install.cmake
|
|
|
|
+++ b/cmake/install.cmake
|
2021-09-23 04:09:55 +08: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 13:11:06 +08: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)
|