[miniz] Fix broken cmake config file (#11316)

This commit is contained in:
Lily 2020-05-13 07:06:15 +08:00 committed by GitHub
parent 2f7a104d4d
commit 2e6b66cbd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 7 deletions

View File

@ -1,3 +1,4 @@
Source: miniz
Version: 2.1.0
Version: 2.1.0-1
Homepage: https://github.com/richgel999/miniz
Description: Single C source file zlib-replacement library

View File

@ -1,5 +1,3 @@
include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO richgel999/miniz
@ -18,8 +16,7 @@ vcpkg_configure_cmake(
vcpkg_install_cmake()
vcpkg_copy_pdbs()
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/miniz RENAME copyright)
vcpkg_fixup_cmake_targets(CONFIG_PATH share/${PORT})
vcpkg_test_cmake(PACKAGE_NAME miniz)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)