diff options
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/gdal/vcpkg-cmake-wrapper.cmake | 2 | ||||
| -rw-r--r-- | ports/gdal/vcpkg.json | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ports/gdal/vcpkg-cmake-wrapper.cmake b/ports/gdal/vcpkg-cmake-wrapper.cmake index 1448956d1..8614c35e3 100644 --- a/ports/gdal/vcpkg-cmake-wrapper.cmake +++ b/ports/gdal/vcpkg-cmake-wrapper.cmake @@ -92,7 +92,7 @@ if(GDAL_FOUND) _gdal_add_dependency(ZLIB::ZLIB ZLIB)
_gdal_add_dependency(zstd::libzstd zstd CONFIG)
list(FIND ARGS "REQUIRED" required)
- if(NOT required EQUAL "-1")
+ if(NOT GDAL_FOUND AND NOT required EQUAL "-1")
message(FATAL_ERROR "Failed to find dependencies of GDAL")
endif()
endif()
diff --git a/ports/gdal/vcpkg.json b/ports/gdal/vcpkg.json index 7bc8db99d..71e7cbf11 100644 --- a/ports/gdal/vcpkg.json +++ b/ports/gdal/vcpkg.json @@ -1,7 +1,7 @@ { "name": "gdal", "version-semver": "3.2.2", - "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", "supports": "!arm", |
