mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-04 00:21:36 +08:00
35 lines
953 B
CMake
35 lines
953 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO apache/brpc
|
|
REF "${VERSION}"
|
|
SHA512 cc1a373d94752c43376a731b4f08dc559bffcd67bdad7e22268a2a20a1034b40d658d591d946d4c1aa94287060146eb041626e0354188ee7dc41554512d72490
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-build.patch
|
|
fix-warnings.patch
|
|
protobuf.patch
|
|
fix-compilation-error.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()
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
|
|
|
vcpkg_fixup_pkgconfig()
|