mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-08 11:19:00 +08:00
e6c8c2bc05
* Build with CMake [skip actions]
* Update to 3.5.0 RC1 [skip actions]
* Update to 3.5.0RC2
* Use GDAL_USE_INTERNAL_LIBS=OFF
* Use lower-case config path
* Add LERC support
* Fix tiff linkage in libgeotiff
* uwp is unsupported
* core doesn't imply lerc
* Drop legacy build
* Feature and portfile cleanup [skip actions]
* Cleanup wrapper
* Pass on libspatialite usage requirements
* Update versions
* Remove hfd5/netcdf from default for android
* Update versions
* Fix wrapper
* Update versions
* Fix libgeotiff config
* The wrapper needs pkgconf for libspatialite
* Update versions
* Remove obsolete patch
* Update to v3.5.1-RC1
* Burn host triplet into config, require pkg-config
* Fix libspatialite link libraries [skip actions]
* Update versions in manifests
* Update versions
* Remove obsolete wrapper code [skip actions]
Complements 5c4f512
.
* Update to 3.5.1RC2 [skip actions]
* Handle additional link dependencies using pkg-config [skip actions]
* GDAL's find modules rely on PkgConfig
* Update to 3.5.1
* Update versions
24 lines
817 B
CMake
24 lines
817 B
CMake
cmake_policy(PUSH)
|
|
cmake_policy(SET CMP0012 NEW)
|
|
cmake_policy(SET CMP0054 NEW)
|
|
|
|
list(REMOVE_ITEM ARGS "NO_MODULE" "CONFIG" "MODULE")
|
|
list(APPEND ARGS "CONFIG")
|
|
# The current port version should satisfy GDAL 3.0 ... 3.5
|
|
list(GET ARGS 1 vcpkg_gdal_maybe_version)
|
|
if(vcpkg_gdal_maybe_version MATCHES "(^3\$|^3[.][0-5])")
|
|
list(REMOVE_AT ARGS "1")
|
|
endif()
|
|
unset(vcpkg_gdal_maybe_version)
|
|
_find_package(${ARGS} CONFIG)
|
|
if(GDAL_FOUND)
|
|
get_filename_component(vcpkg_gdal_prefix "${CMAKE_CURRENT_LIST_DIR}/../.." ABSOLUTE)
|
|
set(GDAL_INCLUDE_DIR "${vcpkg_gdal_prefix}/include" CACHE INTERNAL "")
|
|
set(GDAL_INCLUDE_DIRS "${GDAL_INCLUDE_DIR}")
|
|
set(GDAL_LIBRARY GDAL::GDAL CACHE INTERNAL "")
|
|
set(GDAL_LIBRARIES "${GDAL_LIBRARY}")
|
|
unset(vcpkg_gdal_prefix)
|
|
endif()
|
|
|
|
cmake_policy(POP)
|