mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-23 23:47:51 +08:00
9f39409a34
* [protobuf] Update to 3.7.1
42 lines
1.7 KiB
Diff
42 lines
1.7 KiB
Diff
diff --git a/cmake/install.cmake b/cmake/install.cmake
|
|
index 9b2ae93c..7c9670a3 100644
|
|
--- a/cmake/install.cmake
|
|
+++ b/cmake/install.cmake
|
|
@@ -22,10 +22,12 @@ foreach(_library ${_protobuf_libraries})
|
|
set_property(TARGET ${_library}
|
|
PROPERTY INSTALL_RPATH "@loader_path")
|
|
endif()
|
|
+ if(NOT "${_library}" STREQUAL "libprotobuf-lite")
|
|
install(TARGETS ${_library} EXPORT protobuf-targets
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT ${_library}
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT ${_library}
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT ${_library})
|
|
+ endif()
|
|
endforeach()
|
|
|
|
if (protobuf_BUILD_PROTOC_BINARIES)
|
|
@@ -40,7 +42,7 @@ if (protobuf_BUILD_PROTOC_BINARIES)
|
|
endif()
|
|
endif (protobuf_BUILD_PROTOC_BINARIES)
|
|
|
|
-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/protobuf.pc ${CMAKE_CURRENT_BINARY_DIR}/protobuf-lite.pc DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
|
|
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/protobuf.pc DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
|
|
|
|
file(STRINGS extract_includes.bat.in _extract_strings
|
|
REGEX "^copy")
|
|
@@ -121,12 +123,12 @@ configure_file(protobuf-options.cmake
|
|
# Allows the build directory to be used as a find directory.
|
|
|
|
if (protobuf_BUILD_PROTOC_BINARIES)
|
|
- export(TARGETS libprotobuf-lite libprotobuf libprotoc protoc
|
|
+ export(TARGETS libprotobuf libprotoc protoc
|
|
NAMESPACE protobuf::
|
|
FILE ${CMAKE_INSTALL_CMAKEDIR}/protobuf-targets.cmake
|
|
)
|
|
else (protobuf_BUILD_PROTOC_BINARIES)
|
|
- export(TARGETS libprotobuf-lite libprotobuf
|
|
+ export(TARGETS libprotobuf
|
|
NAMESPACE protobuf::
|
|
FILE ${CMAKE_INSTALL_CMAKEDIR}/protobuf-targets.cmake
|
|
)
|