vcpkg/ports/minio-cpp/portfile.cmake

21 lines
629 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO minio/minio-cpp
REF v0.1.0
SHA512 40442ff91e2894945425cbfc21bbd7448201a454c36bea84ffcfee70ab5a71c18e0948f7a1c5453205b7199914fa8fa820f53961c8262cd4fdf646470846f65e
HEAD_REF main
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_DOC=OFF
-DBUILD_EXAMPLES=OFF
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)