vcpkg/ports/minio-cpp/portfile.cmake

22 lines
617 B
CMake
Raw Normal View History

2024-04-06 05:12:28 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO minio/minio-cpp
REF "v${VERSION}"
SHA512 543dc1ab5bc23cdd5e2ea18c75280ed910a0336e3ab09627849afc256711db8e31885032a4bfa67420cb98db08ee8a4ee0852fe36b875ff4f7784fcf4353e044
HEAD_REF main
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME miniocpp CONFIG_PATH "lib/cmake/miniocpp")
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")