2022-07-08 01:21:54 +08:00
|
|
|
diff --git a/cmake/install.cmake b/cmake/install.cmake
|
|
|
|
index 825cb25..4f453d6 100644
|
|
|
|
--- a/cmake/install.cmake
|
|
|
|
+++ b/cmake/install.cmake
|
|
|
|
@@ -32,7 +32,7 @@ if (protobuf_BUILD_PROTOC_BINARIES)
|
|
|
|
install(TARGETS protoc EXPORT protobuf-targets
|
|
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT protoc
|
|
|
|
BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT protoc)
|
|
|
|
- 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)
|