11diff --git a/alg/CMakeLists.txt b/alg/CMakeLists.txt
2- index fe008aa606..8b3d3bf159 100644
2+ index 98a86899f7..317d8a17af 100644
33--- a/alg/CMakeLists.txt
44+++ b/alg/CMakeLists.txt
5- @@ -51,7 +51,7 @@ target_compile_options(alg PRIVATE $<$<COMPILE_LANGUAGE:CXX>:${GDAL_CXX_WARNING_
6- target_compile_options(alg PRIVATE $<$<COMPILE_LANGUAGE:C>:${GDAL_C_WARNING_FLAGS}>)
7-
8- target_include_directories(
9- - alg PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/marching_squares> $<TARGET_PROPERTY:gdal_GTIFF,SOURCE_DIR>
10- + alg PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/marching_squares>
11- $<TARGET_PROPERTY:gdal_vrt,SOURCE_DIR> $<TARGET_PROPERTY:gdal_MEM,SOURCE_DIR>)
5+ @@ -62,10 +62,6 @@ target_include_directories(
126 set_property(TARGET alg PROPERTY POSITION_INDEPENDENT_CODE ${GDAL_OBJECT_LIBRARIES_POSITION_INDEPENDENT_CODE})
137 target_sources(${GDAL_LIB_TARGET_NAME} PRIVATE $<TARGET_OBJECTS:alg>)
8+
9+ - if (GDAL_ENABLE_DRIVER_GTIFF)
10+ - target_include_directories(alg PRIVATE $<TARGET_PROPERTY:gdal_GTIFF,SOURCE_DIR>)
11+ - endif()
12+ -
13+ if (GDAL_USE_GEOS)
14+ target_compile_definitions(alg PRIVATE -DHAVE_GEOS=1)
15+ gdal_target_link_libraries(alg PRIVATE ${GEOS_TARGET})
1416diff --git a/cmake/helpers/CheckDependentLibraries.cmake b/cmake/helpers/CheckDependentLibraries.cmake
15- index 6f9ee274bf..af103ffec7 100644
17+ index 830ecef9a4..1a78af2ef4 100644
1618--- a/cmake/helpers/CheckDependentLibraries.cmake
1719+++ b/cmake/helpers/CheckDependentLibraries.cmake
18- @@ -409 ,14 +409 ,6 @@ if ("${PROJ_VERSION}" VERSION_LESS "6.3")
20+ @@ -141 ,14 +141 ,6 @@ if ("${PROJ_VERSION}" VERSION_LESS "6.3")
1921 message(FATAL_ERROR "PROJ >= 6.3 required. Version ${PROJ_VERSION} found")
2022 endif()
2123
@@ -25,43 +27,52 @@ index 6f9ee274bf..af103ffec7 100644
2527- URL "https://libtiff.gitlab.io/libtiff/"
2628- DESCRIPTION "Support for the Tag Image File Format (TIFF)."
2729- TYPE RECOMMENDED)
28- - gdal_internal_library(TIFF REQUIRED )
30+ - gdal_internal_library(TIFF)
2931-
3032 if (DEFINED ENV{CONDA_PREFIX} AND UNIX)
3133 # Currently on Unix, the Zstd cmake config file is buggy. It declares a
3234 # libzstd_static target but the corresponding libzstd.a file is missing,
33- @@ -430,11 +422 ,6 @@ gdal_check_package(ZSTD "ZSTD compression library" CAN_DISABLE ${ZSTD_NAMES_AND_
35+ @@ -162,8 +154 ,6 @@ gdal_check_package(ZSTD "ZSTD compression library" CAN_DISABLE ${ZSTD_NAMES_AND_
3436 gdal_check_package(SFCGAL "gdal core supports ISO 19107:2013 and OGC Simple Features Access 1.2 for 3D operations"
3537 CAN_DISABLE)
3638
37- - gdal_check_package(GeoTIFF "libgeotiff library (external)" CAN_DISABLE RECOMMENDED
38- - NAMES GeoTIFF
39- - TARGETS geotiff_library GEOTIFF::GEOTIFF
40- - )
41- - gdal_internal_library(GEOTIFF REQUIRED)
42-
39+ - include(CheckDependentLibrariesGeoTIFF)
40+ -
4341 gdal_check_package(PNG "PNG compression library (external)" CAN_DISABLE RECOMMENDED VERSION "1.6")
4442 gdal_internal_library(PNG)
43+
4544diff --git a/frmts/CMakeLists.txt b/frmts/CMakeLists.txt
46- index fc9787f958..87df879313 100644
45+ index 26a45cfc53..1917272a50 100644
4746--- a/frmts/CMakeLists.txt
4847+++ b/frmts/CMakeLists.txt
49- @@ -34,10 +34,7 @@ include(CMakeDependentOption)
48+ @@ -34,22 +34,7 @@ include(CMakeDependentOption)
5049 gdal_dependent_format(jpeg "JPEG image format" "GDAL_USE_JPEG OR GDAL_USE_JPEG_INTERNAL")
5150
5251 # base driver provide frmt core functions
5352- gdal_optional_format(raw "Raw formats:EOSAT FAST Format, FARSITE LCP and Vexcel MFF2 Image")
54- # JPEG must be defined before GTiff
55- - gdal_format(gtiff "GeoTIFF image format")
53+ - # JPEG must be defined before GTiff
54+
55+ - # Exception to the rule: enable the GTiff driver by default, even if
56+ - # GDAL_BUILD_OPTIONAL_DRIVERS=OFF.
57+ - if (NOT DEFINED GDAL_ENABLE_DRIVER_GTIFF AND
58+ - DEFINED GDAL_BUILD_OPTIONAL_DRIVERS AND
59+ - NOT GDAL_BUILD_OPTIONAL_DRIVERS AND
60+ - (GDAL_USE_TIFF OR GDAL_USE_TIFF_INTERNAL) AND
61+ - (GDAL_USE_GEOTIFF OR GDAL_USE_GEOTIFF_INTERNAL))
62+ - message(WARNING "Enabling GDAL_ENABLE_DRIVER_GTIFF=ON, despite GDAL_BUILD_OPTIONAL_DRIVERS=OFF. You can of course override this choice by setting GDAL_ENABLE_DRIVER_GTIFF=OFF")
63+ - option(GDAL_ENABLE_DRIVER_GTIFF "Set ON to build GeoTIFF image format format" ON)
64+ - endif()
65+ -
66+ - gdal_dependent_format(gtiff "GeoTIFF image format" "GDAL_USE_TIFF OR GDAL_USE_TIFF_INTERNAL;GDAL_USE_GEOTIFF OR GDAL_USE_GEOTIFF_INTERNAL")
5667- set_package_properties(TIFF PROPERTIES PURPOSE "gdal_GTIFF: GeoTIFF image format")
5768 gdal_format(mem "Read/write data in Memory")
58- gdal_format(vrt "Virtual GDAL Datasets")
59- # Note: derived is derived of vrt
60- @@ -49,125 +46 ,10 @@ if (CMAKE_BUILD_TYPE MATCHES "Debug" OR GDAL_ENABLE_DRIVER_NULL)
69+
70+ # Exception to the rule: enable the VRT driver by default, even if
71+ @@ -79,126 +64 ,10 @@ if (CMAKE_BUILD_TYPE MATCHES "Debug" OR GDAL_ENABLE_DRIVER_NULL)
6172 gdal_optional_format(null "NULL dummy driver")
6273 endif ()
6374
64- - gdal_format (hfa "Erdas Imagine .img")
75+ - gdal_optional_format (hfa "Erdas Imagine .img")
6576- gdal_optional_format(sdts "SDTS translator")
6677- gdal_optional_format(nitf "National Imagery Transmission Format")
6778- gdal_optional_format(gxf "GXF")
@@ -100,6 +111,7 @@ index fc9787f958..87df879313 100644
100111- gdal_optional_format(northwood "NWT_GRD/NWT_GRC -- Northwood/Vertical Mapper File Format")
101112- gdal_optional_format(saga "SAGA GIS Binary Driver")
102113- gdal_optional_format(xyz "ASCII Gridded XYZ")
114+ - include(avif/driver_declaration.cmake)
103115- gdal_dependent_format(heif "HEIF" "GDAL_USE_HEIF")
104116- gdal_optional_format(esric "ESRI compact cache")
105117- gdal_optional_format(hf2 "HF2/HFZ heightfield raster")
@@ -120,6 +132,7 @@ index fc9787f958..87df879313 100644
120132- gdal_optional_format(bmp "Microsoft Windows Device Independent Bitmap")
121133- gdal_optional_format(tga "TGA")
122134- gdal_optional_format(stacta "STACTA")
135+ - gdal_optional_format(snap_tiff "SNAP TIFF")
123136-
124137- # optional Formats
125138- gdal_optional_format(bsb "Maptech/NOAA BSB Nautical Chart Format")
@@ -159,9 +172,9 @@ index fc9787f958..87df879313 100644
159172- gdal_dependent_format(postgisraster "PostGIS Raster driver" "GDAL_USE_POSTGRESQL")
160173- gdal_dependent_format(dds "DirectDraw Surface" "GDAL_USE_CRNLIB")
161174- gdal_dependent_format(kea "Kea" "GDAL_USE_KEA;GDAL_USE_HDF5")
162- gdal_dependent_format(openjpeg "JPEG2000 driver based on OpenJPEG library" "GDAL_USE_OPENJPEG" DRIVER_NAME_OPTION
163- "JP2OpenJPEG" )
164- - gdal_dependent_format (tiledb "TileDB tiledb.io" "GDAL_USE_TILEDB" )
175+ +
176+ include(openjpeg/driver_declaration.cmake )
177+ - include (tiledb/driver_declaration.cmake )
165178- gdal_dependent_format(exr "EXR support via OpenEXR library" "GDAL_USE_OPENEXR")
166179- gdal_dependent_format(pcraster "PCRaster CSF 2.0 raster file driver" "GDAL_USE_LIBCSF OR GDAL_USE_LIBCSF_INTERNAL")
167180- gdal_dependent_format(rdb "RIEGL RDB Map Pixel (.mpx) driver" "rdb_FOUND")
@@ -170,45 +183,50 @@ index fc9787f958..87df879313 100644
170183-
171184- # ######################################################################################################################
172185- # driver with proprietary libraries Kakadu software SDK
173- - gdal_dependent_format (jp2kak "JPEG-2000 (based on Kakadu)" "GDAL_USE_KDU" )
186+ - include (jp2kak/driver_declaration.cmake )
174187- gdal_dependent_format(jpipkak "JPIP Streaming" "GDAL_USE_KDU")
175188- # Luratech SDK
176189- gdal_dependent_format(jp2lura "JPEG-2000 (based on Luratech)" "GDAL_USE_LURATECH")
177190- # ESRI ArcSDE C API SDK
178191- gdal_dependent_format(sde "ESRI ArcSDE Raster" "HAVE_SDE")
179192- # LizardTech's decoding software development kit (DSDK)
180- - gdal_dependent_format (mrsid "Multi-resolution Seamless Image Database" "GDAL_USE_MRSID" )
181- - gdal_dependent_format (georaster "Oracle Spatial GeoRaster" "GDAL_USE_ORACLE" DRIVER_NAME_OPTION GEOR )
182- - gdal_dependent_format (ecw "ERDAS JPEG2000 (.jp2)" "GDAL_USE_ECW" )
193+ - include (mrsid/driver_declaration.cmake )
194+ - include (georaster/driver_declaration.cmake )
195+ - include (ecw/driver_declaration.cmake )
183196
184197 # Register all frmt drivers according to FRMT_<driver> flags
185198 gdal_standard_includes(gdal_frmts)
186199diff --git a/gcore/CMakeLists.txt b/gcore/CMakeLists.txt
187- index f8258bbdec..4981effb38 100644
200+ index a61970e9e1..cf1c608569 100644
188201--- a/gcore/CMakeLists.txt
189202+++ b/gcore/CMakeLists.txt
190- @@ -68,7 +68,7 @@ target_compile_options(gcore PRIVATE ${GDAL_CXX_WARNING_FLAGS} ${WFLAG_OLD_STYLE
191- target_include_directories(
192- gcore
193- PRIVATE $<TARGET_PROPERTY:ogrsf_generic,SOURCE_DIR> $<TARGET_PROPERTY:ogr_geojson,SOURCE_DIR>
194- - $<TARGET_PROPERTY:gdal_GTIFF,SOURCE_DIR> $<TARGET_PROPERTY:gdal_MEM,SOURCE_DIR>
195- + $<TARGET_PROPERTY:gdal_MEM,SOURCE_DIR>
203+ @@ -73,11 +73,6 @@ target_include_directories(
196204 $<TARGET_PROPERTY:gdal_vrt,SOURCE_DIR>)
197205 set_property(TARGET gcore PROPERTY POSITION_INDEPENDENT_CODE ${GDAL_OBJECT_LIBRARIES_POSITION_INDEPENDENT_CODE})
198206
207+ - if (GDAL_ENABLE_DRIVER_GTIFF)
208+ - target_include_directories(gcore PRIVATE $<TARGET_PROPERTY:gdal_GTIFF,SOURCE_DIR>)
209+ - target_compile_definitions(gcore PRIVATE -DHAVE_TIFF)
210+ - endif()
211+ -
212+ if (NOT DEFINED GDAL_RESOURCE_PATH)
213+ message(FATAL_ERROR "GDAL_RESOURCE_PATH not set")
214+ endif ()
199215diff --git a/gcore/gdaljp2metadata.cpp b/gcore/gdaljp2metadata.cpp
200- index 139c6940c2..b50c537b41 100644
216+ index e3f6442b2c..5a72a9a0a1 100644
201217--- a/gcore/gdaljp2metadata.cpp
202218+++ b/gcore/gdaljp2metadata.cpp
203- @@ -52,7 +52 ,6 @@
219+ @@ -36,9 +36 ,6 @@
204220 #include "cpl_string.h"
205221 #include "cpl_minixml.h"
206222 #include "gdaljp2metadatagenerator.h"
223+ - #ifdef HAVE_TIFF
207224- #include "gt_wkt_srs_for_gdal.h"
225+ - #endif
208226 #include "ogr_api.h"
209227 #include "ogr_core.h"
210228 #include "ogr_geometry.h"
211- @@ -575,126 +574 ,6 @@ int GDALJP2Metadata::ReadBoxes(VSILFILE *fpVSIL)
229+ @@ -559,130 +556 ,6 @@ int GDALJP2Metadata::ReadBoxes(VSILFILE *fpVSIL)
212230 return TRUE;
213231 }
214232
@@ -219,6 +237,7 @@ index 139c6940c2..b50c537b41 100644
219237- int GDALJP2Metadata::ParseJP2GeoTIFF()
220238-
221239- {
240+ - #ifdef HAVE_TIFF
222241- if (!CPLTestBool(CPLGetConfigOption("GDAL_USE_GEOJP2", "TRUE")))
223242- return FALSE;
224243-
@@ -330,12 +349,15 @@ index 139c6940c2..b50c537b41 100644
330349- }
331350-
332351- return iBestIndex >= 0;
352+ - #else
353+ - return false;
354+ - #endif
333355- }
334356-
335357 /************************************************************************/
336358 /* ParseMSIG() */
337359 /************************************************************************/
338- @@ -1218,65 +1097 ,6 @@ void GDALJP2Metadata::SetRPCMD(char **papszRPCMDIn)
360+ @@ -1206,69 +1079 ,6 @@ void GDALJP2Metadata::SetRPCMD(char **papszRPCMDIn)
339361 papszRPCMD = CSLDuplicate(papszRPCMDIn);
340362 }
341363
@@ -346,6 +368,7 @@ index 139c6940c2..b50c537b41 100644
346368- GDALJP2Box *GDALJP2Metadata::CreateJP2GeoTIFF()
347369-
348370- {
371+ - #ifdef HAVE_TIFF
349372- /* -------------------------------------------------------------------- */
350373- /* Prepare the memory buffer containing the degenerate GeoTIFF */
351374- /* file. */
@@ -371,6 +394,9 @@ index 139c6940c2..b50c537b41 100644
371394- CPLFree(pabyGTBuf);
372395-
373396- return poBox;
397+ - #else
398+ - return nullptr;
399+ - #endif
374400- }
375401-
376402- /************************************************************************/
@@ -402,10 +428,10 @@ index 139c6940c2..b50c537b41 100644
402428 /* GetGMLJP2GeoreferencingInfo() */
403429 /************************************************************************/
404430diff --git a/gdal.cmake b/gdal.cmake
405- index 54cfbe13af..c7ca3338a4 100644
431+ index 0148674043..3eb0b512b5 100644
406432--- a/gdal.cmake
407433+++ b/gdal.cmake
408- @@ -548 ,8 +548 ,6 @@ if(OGR_ENABLE_DRIVER_GPKG AND
434+ @@ -344 ,8 +344 ,6 @@ if(OGR_ENABLE_DRIVER_GPKG AND
409435 endif()
410436
411437 # We need to forward declare a few OGR drivers because raster formats need them
@@ -415,24 +441,52 @@ index 54cfbe13af..c7ca3338a4 100644
415441 "GDAL_USE_SQLITE3" OFF)
416442 cmake_dependent_option(OGR_ENABLE_DRIVER_GPKG "Set ON to build OGR GPKG driver" ${OGR_BUILD_OPTIONAL_DRIVERS}
417443diff --git a/ogr/ogrsf_frmts/CMakeLists.txt b/ogr/ogrsf_frmts/CMakeLists.txt
418- index f11285935d..7819c19ae6 100644
444+ index e4cd0c4f04..024a29b930 100644
419445--- a/ogr/ogrsf_frmts/CMakeLists.txt
420446+++ b/ogr/ogrsf_frmts/CMakeLists.txt
421- @@ -13,105 +13,11 @@ add_dependencies(ogrsf_frmts generate_gdal_version_h)
422- # Obligatory for building GDAL; always compile in.
423- ogr_default_driver(mem "Read/write driver for MEMORY virtual files")
424- ogr_default_driver(geojson "GeoJSON/ESRIJSON/TopoJSON driver")
425- - ogr_default_driver2(mitab TAB "MapInfo TAB and MIF/MID")
426- - ogr_default_driver(shape "ESRI shape-file")
447+ @@ -23,138 +23,10 @@ if (NOT DEFINED OGR_ENABLE_DRIVER_GEOJSON AND
448+ endif()
449+ ogr_optional_driver(geojson "GeoJSON/GeoJSONSeq/ESRIJSON/TopoJSON drivers")
450+
451+ - add_feature_info(ogr_TAB OGR_ENABLE_DRIVER_TAB "MapInfo TAB and MIF/MID")
452+ - if (OGR_ENABLE_DRIVER_TAB)
453+ - add_subdirectory(mitab)
454+ - endif ()
455+ -
456+ - # Exception to the rule: enable the Shapefile driver by default, even if
457+ - # OGR_BUILD_OPTIONAL_DRIVERS=OFF.
458+ - if (NOT DEFINED OGR_ENABLE_DRIVER_SHAPE AND
459+ - DEFINED OGR_BUILD_OPTIONAL_DRIVERS AND
460+ - NOT OGR_BUILD_OPTIONAL_DRIVERS)
461+ - message(WARNING "Enabling OGR_ENABLE_DRIVER_SHAPE=ON, despite OGR_BUILD_OPTIONAL_DRIVERS=OFF. You can of course override this choice by setting OGR_ENABLE_DRIVER_SHAPE=OFF")
462+ - option(OGR_ENABLE_DRIVER_SHAPE "Set ON to build Shapefile driver" ON)
463+ - endif()
464+ - ogr_optional_driver(shape "ESRI shape-file")
427465-
428466- # ######################################################################################################################
429- - ogr_default_driver (kml KML) # when not found EXPAT, it use CPL_MINIXML (ex. android)
430- - ogr_default_driver (vrt "VRT - Virtual Format")
467+ - ogr_optional_driver (kml KML) # when not found EXPAT, it use CPL_MINIXML (ex. android)
468+ - ogr_optional_driver (vrt "VRT - Virtual Format")
431469-
432470- # Caution: if modifying AVC declaration here, also modify it in gdal.cmake
433471- ogr_optional_driver(avc AVC)
434472-
435- - ogr_optional_driver(gml GML) # when not found both EXPAT/XercesC, return error in driver, referenced by WCS
473+ - if (NOT(DEFINED OGR_ENABLE_DRIVER_GML AND NOT OGR_ENABLE_DRIVER_GML AND
474+ - ((NOT GDAL_USE_CURL) OR
475+ - (DEFINED OGR_ENABLE_DRIVER_WFS AND NOT OGR_ENABLE_DRIVER_WFS AND
476+ - DEFINED OGR_ENABLE_DRIVER_OAPIF AND NOT OGR_ENABLE_DRIVER_OAPIF AND
477+ - DEFINED OGR_ENABLE_DRIVER_CSW AND NOT OGR_ENABLE_DRIVER_CSW))))
478+ - # Only build gmlutils if we have GML, WFS, OAPIF or CSW
479+ - add_subdirectory(gmlutils)
480+ - endif()
481+ -
482+ - if (GDAL_ENABLE_PLUGINS_NO_DEPS AND NOT DEFINED OGR_ENABLE_DRIVER_GML_PLUGIN)
483+ - option(OGR_ENABLE_DRIVER_GML_PLUGIN "Set ON to build GML driver as a plugin" OFF)
484+ - endif ()
485+ - ogr_optional_driver(gml GML)
486+ - if (OGR_ENABLE_DRIVER_GML_PLUGIN AND
487+ - ((NOT DEFINED OGR_ENABLE_DRIVER_NAS OR OGR_ENABLE_DRIVER_NAS)))
488+ - message(FATAL_ERROR "When building the GML driver as a plugin, the NAS driver must be explicitly disabled with OGR_ENABLE_DRIVER_NAS=OFF")
489+ - endif()
436490-
437491- # ######################################################################################################################
438492- ogr_optional_driver(csv CSV)
@@ -455,35 +509,40 @@ index f11285935d..7819c19ae6 100644
455509- ogr_optional_driver(vdv "VDV-451/VDV-452/INTREST Data Format")
456510- ogr_optional_driver(flatgeobuf FlatGeobuf)
457511- ogr_optional_driver(mapml MapML)
458- - ogr_optional_driver(jsonfg JSONFG)
512+ -
459513- if( NOT WORDS_BIGENDIAN )
460514- ogr_optional_driver(miramon "MiraMonVector")
461515- endif()
462516-
463517- # ######################################################################################################################
464518- #
519+ - if (NOT OGR_ENABLE_DRIVER_GEOJSON_PLUGIN)
520+ - ogr_dependent_driver(jsonfg JSONFG "OGR_ENABLE_DRIVER_GEOJSON")
521+ - endif()
465522-
466523- ogr_dependent_driver(sdts SDTS "GDAL_ENABLE_DRIVER_SDTS")
467524-
468525- # XML drivers
469526- ogr_dependent_driver(gpx "GPX - GPS Exchange Format" "GDAL_USE_EXPAT")
470527- ogr_dependent_driver(gmlas GMLAS "GDAL_USE_XERCESC;OGR_ENABLE_DRIVER_PGDUMP")
471528- ogr_dependent_driver(svg "Scalable Vector Graphics" "GDAL_USE_EXPAT")
472- - ogr_dependent_driver(csw CSW "GDAL_USE_CURL;OGR_ENABLE_DRIVER_GML ")
529+ - ogr_dependent_driver(csw CSW "GDAL_USE_CURL")
473530- ogr_dependent_driver(dwg DWG "GDAL_USE_TEIGHA")
474531- ogr_dependent_driver(filegdb FileGDB "GDAL_USE_FILEGDB")
475532- ogr_dependent_driver(libkml LibKML "GDAL_USE_LIBKML")
476533- ogr_dependent_driver(nas "NAS/ALKIS" "GDAL_USE_XERCESC;OGR_ENABLE_DRIVER_GML")
477534- ogr_dependent_driver(plscenes PLSCENES "GDAL_USE_CURL")
478535- ogr_dependent_driver(sosi "SOSI:Systematic Organization of Spatial Information" "GDAL_USE_FYBA")
479- - ogr_dependent_driver(wfs "OGC WFS service" "GDAL_USE_CURL;OGR_ENABLE_DRIVER_GML")
536+ - ogr_dependent_driver(wfs "OGC WFS service" "GDAL_USE_CURL")
537+ - ogr_dependent_driver(oapif "OGC API Features service" "GDAL_USE_CURL")
480538- ogr_dependent_driver(ngw "NextGIS Web" "GDAL_USE_CURL")
481539- ogr_dependent_driver(elastic "ElasticSearch" "GDAL_USE_CURL")
540+ - ogr_dependent_driver(xodr OpenDRIVE "GDAL_USE_OPENDRIVE;GDAL_USE_GEOS")
482541-
483542- ogr_dependent_driver(idrisi IDRISI "GDAL_ENABLE_DRIVER_IDRISI")
484543-
485- - ogr_dependent_driver(pds "Planetary Data Systems TABLE" "GDAL_ENABLE_DRIVER_PDS;OGR_ENABLE_DRIVER_GML ")
486-
544+ - ogr_dependent_driver(pds "Planetary Data Systems TABLE" "GDAL_ENABLE_DRIVER_PDS")
545+ -
487546 # Caution: if modifying SQLite declaration here, also modify it in gdal.cmake
488547 ogr_dependent_driver(sqlite "SQLite3 / Spatialite RDBMS" "GDAL_USE_SQLITE3")
489548 # Caution: if modifying GPKG declaration here, also modify it in gdal.cmake
@@ -508,14 +567,14 @@ index f11285935d..7819c19ae6 100644
508567- ogr_dependent_driver(xls "Microsoft Office Excel(xls)" "GDAL_USE_FREEXL")
509568- ogr_dependent_driver(mongodbv3 "MongoDB V3" "GDAL_USE_MONGOCXX")
510569- ogr_dependent_driver(cad "OpenCAD" "GDAL_USE_OPENCAD OR GDAL_USE_OPENCAD_INTERNAL")
511- - ogr_dependent_driver (parquet "Parquet" "GDAL_USE_PARQUET" )
512- - ogr_dependent_driver (arrow "Arrow" "GDAL_USE_ARROW" )
570+ - include (parquet/driver_declaration.cmake )
571+ - include (arrow/driver_declaration.cmake )
513572-
514573- ogr_dependent_driver(gtfs "GTFS" "OGR_ENABLE_DRIVER_CSV")
515574-
516575- # ######################################################################################################################
517576- # proprietary libraries
518- - ogr_dependent_driver (oci "Oracle OCI" "GDAL_USE_ORACLE" )
577+ - include (oci/driver_declaration.cmake )
519578- ogr_dependent_driver(idb "IDB" "GDAL_USE_IDB")
520579- ogr_dependent_driver(ods ODS "GDAL_USE_EXPAT")
521580- ogr_dependent_driver(ogdi "OGDI" "GDAL_USE_OGDI")
0 commit comments