mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-19 05:03:03 +08:00
[zziplib] fix build for Android triplets running on Windows host (#27238)
This commit is contained in:
parent
9e2cab815d
commit
a277ec2e8b
@ -11,6 +11,11 @@ vcpkg_from_github(
|
||||
string(COMPARE EQUAL VCPKG_CRT_LINKAGE "static" MSVC_STATIC_RUNTIME)
|
||||
string(COMPARE EQUAL VCPKG_LIBRARY_LINKAGE "static" BUILD_STATIC_LIBS)
|
||||
|
||||
# on Windows hosts, the UnixCommands are not available; disable options that use them
|
||||
if(VCPKG_HOST_IS_WINDOWS)
|
||||
set(ZZIPLIB_OPTIONS "-DZZIP_COMPAT=OFF;-DZZIP_PKGCONFIG=OFF")
|
||||
endif()
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
@ -24,6 +29,7 @@ vcpkg_cmake_configure(
|
||||
-DZZIPBINS=OFF
|
||||
-DZZIPTEST=OFF
|
||||
-DZZIPDOCS=OFF
|
||||
${ZZIPLIB_OPTIONS}
|
||||
)
|
||||
vcpkg_cmake_install()
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "zziplib",
|
||||
"version": "0.13.72",
|
||||
"port-version": 2,
|
||||
"port-version": 3,
|
||||
"description": "library providing read access on ZIP-archives",
|
||||
"homepage": "https://github.com/gdraheim/zziplib",
|
||||
"license": "LGPL-2.0-or-later OR MPL-1.1",
|
||||
|
@ -8202,7 +8202,7 @@
|
||||
},
|
||||
"zziplib": {
|
||||
"baseline": "0.13.72",
|
||||
"port-version": 2
|
||||
"port-version": 3
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "4408845ee5c914b49838db10b1e7dec234ee5981",
|
||||
"version": "0.13.72",
|
||||
"port-version": 3
|
||||
},
|
||||
{
|
||||
"git-tree": "ba836047fca40d155c24a986af7cf5283692a4d6",
|
||||
"version": "0.13.72",
|
||||
|
Loading…
Reference in New Issue
Block a user