Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions vcpkg_ports/gdal/duckdb_gdal_windows_static.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- a/gdal.cmake
+++ b/gdal.cmake
@@ -619,8 +619,10 @@
if (MSVC)
target_sources(${GDAL_LIB_TARGET_NAME} PRIVATE gcore/Version.rc)
source_group("Resource Files" FILES gcore/Version.rc)
- if (CMAKE_CL_64)
+ if (CMAKE_SYSTEM_PROCESSOR STREQUAL AMD64)
set_target_properties(${GDAL_LIB_TARGET_NAME} PROPERTIES STATIC_LIBRARY_FLAGS "/machine:x64")
+ elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL ARM64)
+ set_target_properties(${GDAL_LIB_TARGET_NAME} PROPERTIES STATIC_LIBRARY_FLAGS "/machine:arm64")
endif ()
endif ()

1 change: 1 addition & 0 deletions vcpkg_ports/gdal/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ vcpkg_from_github(
duckdb_gdal_json.patch
duckdb_gdal_msys.patch
duckdb_gdal_remove_filehandler.patch
duckdb_gdal_windows_static.patch
)
# `vcpkg clean` stumbles over one subdir
file(REMOVE_RECURSE "${SOURCE_PATH}/autotest")
Expand Down