mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 11:41:36 +08:00
[gdal] for static builds utilize static proj library (#13226)
This commit is contained in:
parent
51d3fb052d
commit
ff0d69e3e3
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user