Skip to content

Commit

Permalink
Remove GDAL use of modded zlib and png find modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
starseeker committed Oct 11, 2024
1 parent 67903cf commit b1b9fa5
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 351 deletions.
4 changes: 3 additions & 1 deletion gdal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ if (ENABLE_GDAL)
ExternalProject_Add(GDAL_BLD
URL "${CMAKE_CURRENT_SOURCE_DIR}/gdal"
BUILD_ALWAYS ${EXT_BUILD_ALWAYS} ${LOG_OPTS}
PATCH_COMMAND ${PATCH_EXECUTABLE};-E;-p1;${PATCH_OPTIONS};-i;${CMAKE_CURRENT_SOURCE_DIR}/gdal.patch
PATCH_COMMAND ${PATCH_EXECUTABLE};-E;-p1;${PATCH_OPTIONS};-i;${CMAKE_CURRENT_SOURCE_DIR}/gdal_cmake.patch
COMMAND ${PATCH_EXECUTABLE};-E;-p1;${PATCH_OPTIONS};-i;${CMAKE_CURRENT_SOURCE_DIR}/gdal_cpl.patch
COMMAND ${PATCH_EXECUTABLE};-E;-p1;${PATCH_OPTIONS};-i;${CMAKE_CURRENT_SOURCE_DIR}/gdal_gcore.patch
CMAKE_ARGS
-DCMAKE_FIND_PACKAGE_PREFER_CONFIG=ON
${BUILD_TYPE_SPECIFIER}
Expand Down
350 changes: 0 additions & 350 deletions gdal/gdal.patch

This file was deleted.

28 changes: 28 additions & 0 deletions gdal/gdal_cmake.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
diff -Naur gdal/cmake/modules/packages/FindSQLite3.cmake GDAL_BLD/cmake/modules/packages/FindSQLite3.cmake
--- gdal/cmake/modules/packages/FindSQLite3.cmake 2024-10-11 12:56:24.150252794 -0400
+++ GDAL_BLD/cmake/modules/packages/FindSQLite3.cmake 2024-10-11 12:55:32.592163336 -0400
@@ -57,7 +57,7 @@
NAMES sqlite3.h
HINTS ${PC_SQLITE3_INCLUDE_DIRS})
find_library(SQLite3_LIBRARY
- NAMES sqlite3 sqlite3_i
+ NAMES sqlite3 sqlite3_i libsqlite3 libsqlite libsqlite3_i
HINTS ${PC_SQLITE3_LIBRARY_DIRS})
endif()

diff -Naur gdal/gdal.cmake GDAL_BLD/gdal.cmake
--- gdal/gdal.cmake 2024-10-11 12:56:24.291250306 -0400
+++ GDAL_BLD/gdal.cmake 2024-10-11 12:55:32.595163283 -0400
@@ -379,12 +379,6 @@
set_property(TARGET ${GDAL_LIB_TARGET_NAME} PROPERTY PLUGIN_OUTPUT_DIR "${CMAKE_CURRENT_BINARY_DIR}/gdalplugins")
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/gdalplugins")

-if (MSVC)
- set(GDAL_DEBUG_POSTFIX
- "d"
- CACHE STRING "Postfix to add to the GDAL dll name for debug builds")
- set_target_properties(${GDAL_LIB_TARGET_NAME} PROPERTIES DEBUG_POSTFIX "${GDAL_DEBUG_POSTFIX}")
-endif ()
if (MINGW AND BUILD_SHARED_LIBS)
set_target_properties(${GDAL_LIB_TARGET_NAME} PROPERTIES SUFFIX "-${GDAL_SOVERSION}${CMAKE_SHARED_LIBRARY_SUFFIX}")
endif ()
Loading

0 comments on commit b1b9fa5

Please sign in to comment.