mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 09:29:07 +08:00
[minizip] Fix usage, fix minizipConfig.cmake (#18472)
* [minizip] Fix usage, fix minizipConfig.cmake * update version record
This commit is contained in:
parent
4dc864e240
commit
183a12585a
@ -53,7 +53,7 @@ target_link_libraries(minizip PRIVATE ZLIB::ZLIB)
|
||||
target_compile_definitions(minizip PRIVATE -D_ZLIB_H)
|
||||
|
||||
if(ENABLE_BZIP2)
|
||||
target_link_libraries(minizip PRIVATE ${BZIP2_LIBRARIES})
|
||||
target_link_libraries(minizip PUBLIC ${BZIP2_LIBRARIES})
|
||||
target_compile_definitions(minizip PRIVATE -DHAVE_BZIP2=1)
|
||||
endif()
|
||||
if(ANDROID)
|
||||
|
@ -1,11 +0,0 @@
|
||||
Source: minizip
|
||||
Version: 1.2.11
|
||||
Port-Version: 8
|
||||
Build-Depends: zlib
|
||||
Homepage: https://github.com/madler/zlib
|
||||
Description: Zip compression library
|
||||
Supports: !uwp
|
||||
|
||||
Feature: bzip2
|
||||
Build-Depends: bzip2
|
||||
Description: Support compression using bzip2 library
|
@ -1,4 +1,12 @@
|
||||
#@PACKAGE_INIT@
|
||||
|
||||
include(CMakeFindDependencyMacro)
|
||||
|
||||
find_dependency(ZLIB)
|
||||
|
||||
if (@ENABLE_BZIP2@)
|
||||
find_dependency(BZip2)
|
||||
endif()
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
|
||||
check_required_components("@PROJECT_NAME@")
|
19
ports/minizip/vcpkg.json
Normal file
19
ports/minizip/vcpkg.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "minizip",
|
||||
"version-semver": "1.2.11",
|
||||
"port-version": 9,
|
||||
"description": "Zip compression library",
|
||||
"homepage": "https://github.com/madler/zlib",
|
||||
"supports": "!uwp",
|
||||
"dependencies": [
|
||||
"zlib"
|
||||
],
|
||||
"features": {
|
||||
"bzip2": {
|
||||
"description": "Support compression using bzip2 library",
|
||||
"dependencies": [
|
||||
"bzip2"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
@ -4034,7 +4034,7 @@
|
||||
},
|
||||
"minizip": {
|
||||
"baseline": "1.2.11",
|
||||
"port-version": 8
|
||||
"port-version": 9
|
||||
},
|
||||
"minizip-ng": {
|
||||
"baseline": "3.0.2",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "fc89de0b8a1105f6bee9625bba4031b138862a39",
|
||||
"version-semver": "1.2.11",
|
||||
"port-version": 9
|
||||
},
|
||||
{
|
||||
"git-tree": "4bf6a0d8bac1c47fa80e0c51188aa3d2ecb86414",
|
||||
"version-string": "1.2.11",
|
||||
|
Loading…
Reference in New Issue
Block a user