mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 23:11:17 +08:00
42 lines
1.8 KiB
Diff
42 lines
1.8 KiB
Diff
diff --git a/cmake/install.cmake b/cmake/install.cmake
|
|
index 82036cb..378db2d 100644
|
|
--- a/cmake/install.cmake
|
|
+++ b/cmake/install.cmake
|
|
@@ -15,10 +15,12 @@ foreach(_library ${_protobuf_libraries})
|
|
PROPERTY INTERFACE_INCLUDE_DIRECTORIES
|
|
$<BUILD_INTERFACE:${protobuf_source_dir}/src>
|
|
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
|
|
+ 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)
|
|
@@ -26,7 +28,7 @@ if (protobuf_BUILD_PROTOC_BINARIES)
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT protoc)
|
|
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")
|
|
@@ -107,12 +109,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
|
|
)
|