diff options
| author | Nathan <35282710+nazame@users.noreply.github.com> | 2020-08-31 10:26:02 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-31 09:26:02 -0700 |
| commit | ff0d69e3e3a8528a3017d6e7479310436180eebb (patch) | |
| tree | f29a9bcbcd2fd28a632f27075956e934a0be1a33 | |
| parent | 51d3fb052dcd7f86799c7722dd89a4fd2b5a3f6a (diff) | |
| download | vcpkg-ff0d69e3e3a8528a3017d6e7479310436180eebb.tar.gz vcpkg-ff0d69e3e3a8528a3017d6e7479310436180eebb.zip | |
[gdal] for static builds utilize static proj library (#13226)
| -rw-r--r-- | ports/gdal/CONTROL | 2 | ||||
| -rw-r--r-- | ports/gdal/portfile.cmake | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/ports/gdal/CONTROL b/ports/gdal/CONTROL index 26b3e5c50..531811ecc 100644 --- a/ports/gdal/CONTROL +++ b/ports/gdal/CONTROL @@ -1,6 +1,6 @@ Source: gdal Version: 2.4.1 -Port-Version: 10 +Port-Version: 11 Homepage: https://gdal.org/ Description: The Geographic Data Abstraction Library for reading and writing geospatial raster and vector data. Build-Depends: proj4, libpng, geos, sqlite3, curl, expat, libpq, openjpeg, libwebp, libxml2, liblzma, netcdf-c, hdf5, zlib diff --git a/ports/gdal/portfile.cmake b/ports/gdal/portfile.cmake index 6717285df..2552e4b72 100644 --- a/ports/gdal/portfile.cmake +++ b/ports/gdal/portfile.cmake @@ -212,6 +212,7 @@ if (VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_UWP) if (VCPKG_LIBRARY_LINKAGE STREQUAL static) list(APPEND NMAKE_OPTIONS CURL_CFLAGS=-DCURL_STATICLIB) list(APPEND NMAKE_OPTIONS DLLBUILD=0) + list(APPEND NMAKE_OPTIONS "PROJ_FLAGS=-DPROJ_STATIC -DPROJ_VERSION=5") else() # Enables PDBs for release and debug builds list(APPEND NMAKE_OPTIONS WITH_PDB=1) |
