mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 20:31:18 +08:00
0161d4aca4
* [brpc] update to 1.6.0 * [brpc] update to 1.6.0
33 lines
953 B
CMake
33 lines
953 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO apache/incubator-brpc
|
|
REF "${VERSION}"
|
|
SHA512 2c69a1eaaca26da494c1a10d4f6c67ca53c5cfe43243457263e4966101a77207dee5f29b7372895230978c729254b156b7e4223a41d8e909919fbdac6badc75c
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-build.patch
|
|
fix-boost-ptr.patch
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
DISABLE_PARALLEL_CONFIGURE
|
|
OPTIONS
|
|
-DBUILD_BRPC_TOOLS=OFF
|
|
-DWITH_THRIFT=ON
|
|
-DWITH_GLOG=ON
|
|
-DDOWNLOAD_GTEST=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-brpc CONFIG_PATH share/unofficial-brpc)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/butil/third_party/superfasthash")
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
|
|
vcpkg_fixup_pkgconfig()
|