2022-07-08 01:21:54 +08:00
|
|
|
diff --git a/cmake/install.cmake b/cmake/install.cmake
|
2024-06-22 04:39:50 +08:00
|
|
|
index 998c2e31a..233f9e400 100644
|
2022-07-08 01:21:54 +08:00
|
|
|
--- a/cmake/install.cmake
|
|
|
|
+++ b/cmake/install.cmake
|
2024-06-22 04:39:50 +08:00
|
|
|
@@ -49,7 +49,7 @@ if (protobuf_BUILD_PROTOC_BINARIES)
|
2022-07-08 01:21:54 +08:00
|
|
|
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)
|
2024-06-22 04:39:50 +08:00
|
|
|
@@ -68,7 +68,6 @@ set(protobuf_HEADERS
|
|
|
|
${cpp_features_proto_proto_srcs}
|
|
|
|
${descriptor_proto_proto_srcs}
|
|
|
|
${plugin_proto_proto_srcs}
|
|
|
|
- ${java_features_proto_proto_srcs}
|
|
|
|
)
|
|
|
|
foreach(_header ${protobuf_HEADERS})
|
|
|
|
string(FIND ${_header} "${protobuf_SOURCE_DIR}/src" _find_src)
|