mirror of https://github.com/microsoft/vcpkg.git
[vcpkg baseline][gdal] Fix libarchive and zstd import/export (#51836)
This commit is contained in:
parent
41ff869322
commit
89dac9685f
|
|
@ -0,0 +1,29 @@
|
|||
diff --git a/cmake/helpers/CheckDependentLibraries.cmake b/cmake/helpers/CheckDependentLibraries.cmake
|
||||
index ba99a00a67..d24ece6055 100644
|
||||
--- a/cmake/helpers/CheckDependentLibraries.cmake
|
||||
+++ b/cmake/helpers/CheckDependentLibraries.cmake
|
||||
@@ -423,7 +423,10 @@ gdal_check_package(LZ4 "LZ4 compression" CAN_DISABLE)
|
||||
gdal_check_package(Blosc "Blosc compression" CAN_DISABLE)
|
||||
|
||||
define_find_package2(ARCHIVE archive.h archive)
|
||||
-gdal_check_package(ARCHIVE "Multi-format archive and compression library library (used for /vsi7z/" CAN_DISABLE)
|
||||
+set(GDAL_USE_LIBARCHIVE "${GDAL_USE_ARCHIVE}" CACHE BOOL "")
|
||||
+gdal_check_package(LibArchive "Multi-format archive and compression library library (used for /vsi7z/" CAN_DISABLE
|
||||
+ TARGETS LibArchive::LibArchive
|
||||
+)
|
||||
|
||||
define_find_package2(LIBAEC libaec.h aec)
|
||||
gdal_check_package(LIBAEC "Adaptive Entropy Coding implementing Golomb-Rice algorithm (used by GRIB)" CAN_DISABLE)
|
||||
diff --git a/port/CMakeLists.txt b/port/CMakeLists.txt
|
||||
index 1f5d653d30..b71ef2fef0 100644
|
||||
--- a/port/CMakeLists.txt
|
||||
+++ b/port/CMakeLists.txt
|
||||
@@ -209,7 +209,7 @@ endif ()
|
||||
|
||||
if (GDAL_USE_ARCHIVE)
|
||||
target_compile_definitions(cpl PRIVATE -DHAVE_LIBARCHIVE)
|
||||
- gdal_target_link_libraries(cpl PRIVATE ARCHIVE::ARCHIVE)
|
||||
+ gdal_target_link_libraries(cpl PRIVATE LibArchive::LibArchive)
|
||||
endif ()
|
||||
|
||||
if (GDAL_USE_CURL)
|
||||
|
|
@ -7,12 +7,13 @@ vcpkg_from_github(
|
|||
PATCHES
|
||||
find-link-libraries.patch
|
||||
iconv.diff
|
||||
libarchive.diff
|
||||
libkml.patch
|
||||
sqlite3.diff
|
||||
target-is-valid.patch
|
||||
)
|
||||
|
||||
file(REMOVE "${SOURCE_PATH}/cmake/modules/packages/FindIconv.cmake")
|
||||
file(REMOVE "${SOURCE_PATH}/cmake/modules/packages/FindZSTD.cmake")
|
||||
# `vcpkg clean` stumbles over one subdir
|
||||
file(REMOVE_RECURSE "${SOURCE_PATH}/autotest")
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "gdal",
|
||||
"version-semver": "3.12.4",
|
||||
"port-version": 1,
|
||||
"port-version": 2,
|
||||
"description": "The Geographic Data Abstraction Library for reading and writing geospatial raster and vector data",
|
||||
"homepage": "https://gdal.org",
|
||||
"license": null,
|
||||
|
|
|
|||
|
|
@ -3318,7 +3318,7 @@
|
|||
},
|
||||
"gdal": {
|
||||
"baseline": "3.12.4",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"gdbm": {
|
||||
"baseline": "1.24",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "8d51b5a24e3e607f5ea0f9085f6a0a1fe599df9a",
|
||||
"version-semver": "3.12.4",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "464231a52207efb8065e11adc072063556201e76",
|
||||
"version-semver": "3.12.4",
|
||||
|
|
|
|||
Loading…
Reference in New Issue