File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 1+ --- a/gdal.cmake
2+ +++ b/gdal.cmake
3+ @@ -619,8 +619,10 @@
4+ if (MSVC)
5+ target_sources(${GDAL_LIB_TARGET_NAME} PRIVATE gcore/Version.rc)
6+ source_group("Resource Files" FILES gcore/Version.rc)
7+ - if (CMAKE_CL_64)
8+ + if (CMAKE_SYSTEM_PROCESSOR STREQUAL AMD64)
9+ set_target_properties(${GDAL_LIB_TARGET_NAME} PROPERTIES STATIC_LIBRARY_FLAGS "/machine:x64")
10+ + elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL ARM64)
11+ + set_target_properties(${GDAL_LIB_TARGET_NAME} PROPERTIES STATIC_LIBRARY_FLAGS "/machine:arm64")
12+ endif ()
13+ endif ()
14+
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ vcpkg_from_github(
1212 duckdb_gdal_json.patch
1313 duckdb_gdal_msys.patch
1414 duckdb_gdal_remove_filehandler.patch
15+ duckdb_gdal_windows_static.patch
1516)
1617# `vcpkg clean` stumbles over one subdir
1718file (REMOVE_RECURSE "${SOURCE_PATH} /autotest" )
You can’t perform that action at this time.
0 commit comments