mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 12:19:00 +08:00
29 lines
898 B
CMake
29 lines
898 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO facebook/mvfst
|
|
REF "v${VERSION}"
|
|
SHA512 074ad8201e2c35b51bde0f8eaeb22bfe87af80fd9f3dc6c3de343b19d4b3d7738780a208d4719ee4fbd9d3f2f8a1a95b4858e8dc3fad16c26e4a859ecab75eca
|
|
HEAD_REF main
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DBUILD_TESTS=OFF
|
|
-DBUILD_EXAMPLES=OFF
|
|
)
|
|
|
|
# Prefer installed config files
|
|
file(REMOVE
|
|
"${SOURCE_PATH}/fizz/cmake/FindGMock.cmake"
|
|
"${SOURCE_PATH}/fizz/cmake/FindGflags.cmake"
|
|
"${SOURCE_PATH}/fizz/cmake/FindGlog.cmake"
|
|
"${SOURCE_PATH}/fizz/cmake/FindLibevent.cmake"
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/mvfst)
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|