vcpkg/ports/mvfst/portfile.cmake

20 lines
572 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO facebook/mvfst
REF "v${VERSION}"
SHA512 89891b688ba126911cbb4e4d047f14dadd2b3b2c9ee6654b3bf9cdd3054b49a56009acbc4e9ef57e54a37cb4195404bd9e17728b5fdb48f2b289cec226c3582b
HEAD_REF main
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_TESTS=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/mvfst)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")