mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-24 06:47:50 +08:00
25 lines
725 B
CMake
25 lines
725 B
CMake
|
vcpkg_from_github(
|
||
|
OUT_SOURCE_PATH SOURCE_PATH
|
||
|
REPO sogou/srpc
|
||
|
REF v0.9.3
|
||
|
SHA512 e64cfec279f833ad24b1942ef2b572fc4bd3bfc5f9d623cd5d25b3c869d2ff9b35250cc814e8aaeb919ebed0929c44407eb9abb2e6793cfdc967708210f5f7e3
|
||
|
HEAD_REF master
|
||
|
)
|
||
|
|
||
|
vcpkg_cmake_configure(
|
||
|
SOURCE_PATH ${SOURCE_PATH}
|
||
|
DISABLE_PARALLEL_CONFIGURE
|
||
|
)
|
||
|
|
||
|
vcpkg_cmake_install()
|
||
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/srpc)
|
||
|
vcpkg_copy_pdbs()
|
||
|
vcpkg_copy_tools(
|
||
|
TOOL_NAMES srpc_generator
|
||
|
AUTO_CLEAN
|
||
|
)
|
||
|
|
||
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|