-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from open-vcpkg/gdal391
[gdal] Bump version to 3.9.1
- Loading branch information
Showing
5 changed files
with
32 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
The package GDAL provides CMake targets: | ||
|
||
find_package(GDAL CONFIG REQUIRED) | ||
target_link_libraries(main PRIVATE GDAL::GDAL) | ||
The package GDAL provides CMake targets: | ||
find_package(GDAL CONFIG REQUIRED) | ||
target_link_libraries(main PRIVATE GDAL::GDAL) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
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) | ||
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters