Repository: conan-io/conan-center-index

Issue:
[package] gdal/3.5.2: Cannot link due to undefined reference to arc4random
### Description

When I try to compile GDAL as a shared library with GCC 12 I get the following linker error (full log is included below):

```
/usr/bin/ld: /home/wouter/.conan/data/json-c/0.16/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libjson-c.a(random_seed.c.o): in function `json_c_get_random_seed':
random_seed.c:(.text.json_c_get_random_seed+0x5): undefined reference to `arc4random'
collect2: error: ld returned 1 exit status
gmake[2]: *** [source_subfolder/CMakeFiles/GDAL.dir/build.make:2010: lib/libgdal.so.31.0.2] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:2879: source_subfolder/CMakeFiles/GDAL.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
```

The build does succeed when I use GCC 11 or when I build as a static library.


### Package and Environment Details

* Package Name/Version: **gdal/3.5.2**
* Operating System+version: **Linux Ubuntu 22.04**
* Compiler+version: **GCC 12**
* Conan version: **conan 1.53.0**
* Python version: **Python 3.10.6**


### Conan profile

[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=12
compiler.libcxx=libstdc++11
build_type=Release
[options]
[conf]
[build_requires]
[env]


### Steps to reproduce

conan install -r conancenter gdal/3.5.2@ -o gdal:shared=True -b missing -pr:b=default -pr:h=default

### Logs

(I have removed the GNU Make lines between 2% and 99% progress to stay under the maximum number of characters enforced for this text field.)

<details><summary>Click to expand log</summary>

```
Configuration (profile_host):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=12
os=Linux
os_build=Linux
[options]
gdal:shared=True
[build_requires]
[env]

Configuration (profile_build):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=12
os=Linux
os_build=Linux
[options]
[build_requires]
[env]

WARN: proj/9.0.1: requirement sqlite3/3.38.5 overridden by libgeotiff/1.7.1 to sqlite3/3.39.3 
WARN: proj/9.0.1: requirement libtiff/4.3.0 overridden by libgeotiff/1.7.1 to libtiff/4.4.0 
WARN: libcurl/7.83.1: requirement zlib/1.2.13 overridden by proj/9.0.1 to zlib/1.2.12 
gdal/3.5.2: WARN: Package binary is corrupted, removing: 55d9a32157142351b93e62d5556b6d46cb31a528
Installing package: gdal/3.5.2
Requirements
    gdal/3.5.2 from 'conancenter' - Cache
    geos/3.11.0 from 'conancenter' - Cache
    giflib/5.2.1 from 'conancenter' - Cache
    jbig/20160605 from 'conancenter' - Cache
    json-c/0.16 from 'conancenter' - Cache
    libcurl/7.83.1 from 'conancenter' - Cache
    libdeflate/1.12 from 'conancenter' - Cache
    libgeotiff/1.7.1 from 'conancenter' - Cache
    libiconv/1.17 from 'conancenter' - Cache
    libjpeg/9e from 'conancenter' - Cache
    libpng/1.6.38 from 'conancenter' - Cache
    libtiff/4.4.0 from 'conancenter' - Cache
    libwebp/1.2.4 from 'conancenter' - Cache
    nlohmann_json/3.10.5 from 'conancenter' - Cache
    openssl/1.1.1q from 'conancenter' - Cache
    proj/9.0.1 from 'conancenter' - Cache
    qhull/8.0.1 from 'conancenter' - Cache
    sqlite3/3.39.3 from 'conancenter' - Cache
    xz_utils/5.2.5 from 'conancenter' - Cache
    zlib/1.2.12 from 'conancenter' - Cache
    zstd/1.5.2 from 'conancenter' - Cache
Packages
    gdal/3.5.2:55d9a32157142351b93e62d5556b6d46cb31a528 - Build
    geos/3.11.0:966cfa8937722db16d85a2004f297eebcb07a2d9 - Cache
    giflib/5.2.1:13f6ba77504f4dbbcab51bcfbcf5f927242f8620 - Cache
    jbig/20160605:5975ffdb4c800ef1934c0b8a9542d9b05e891829 - Cache
    json-c/0.16:2a19826344ff00be1c04403f2f8e7008ed3a7cc6 - Cache
    libcurl/7.83.1:9839891da051bc00c1bf0626a64264d44ca13263 - Cache
    libdeflate/1.12:2a19826344ff00be1c04403f2f8e7008ed3a7cc6 - Cache
    libgeotiff/1.7.1:8d3c9381318f61fd0370fef4a1399cb765654c6f - Cache
    libiconv/1.17:2a19826344ff00be1c04403f2f8e7008ed3a7cc6 - Cache
    libjpeg/9e:2a19826344ff00be1c04403f2f8e7008ed3a7cc6 - Cache
    libpng/1.6.38:c50ec4bac288fa759d0037cc4023b4bbefd75ad4 - Cache
    libtiff/4.4.0:916aa3b44fbe15540cfe753a8dcd8e2b5bf328dc - Cache
    libwebp/1.2.4:e86e5edffa26735ce3290ca1aa01c9825e50dae2 - Cache
    nlohmann_json/3.10.5:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
    openssl/1.1.1q:2a19826344ff00be1c04403f2f8e7008ed3a7cc6 - Cache
    proj/9.0.1:99b6ab978018cd08c18492654e8dc19b6173e331 - Cache
    qhull/8.0.1:2a19826344ff00be1c04403f2f8e7008ed3a7cc6 - Cache
    sqlite3/3.39.3:668a23a956a1ae835b578205ecc8274cfd29ae40 - Cache
    xz_utils/5.2.5:2a19826344ff00be1c04403f2f8e7008ed3a7cc6 - Cache
    zlib/1.2.12:2a19826344ff00be1c04403f2f8e7008ed3a7cc6 - Cache
    zstd/1.5.2:782b021ae04def4d8530bde4b8243c2e1608b82b - Cache

Installing (downloading, building) binaries...
geos/3.11.0: Already installed!
geos/3.11.0: Appending PATH environment variable: /home/wouter/.conan/data/geos/3.11.0/_/_/package/966cfa8937722db16d85a2004f297eebcb07a2d9/bin
giflib/5.2.1: Already installed!
giflib/5.2.1: Appending PATH environment variable: /home/wouter/.conan/data/giflib/5.2.1/_/_/package/13f6ba77504f4dbbcab51bcfbcf5f927242f8620/bin
jbig/20160605: Already installed!
jbig/20160605: Appending PATH environment variable: /home/wouter/.conan/data/jbig/20160605/_/_/package/5975ffdb4c800ef1934c0b8a9542d9b05e891829/bin
json-c/0.16: Already installed!
libdeflate/1.12: Already installed!
libiconv/1.17: Already installed!
libiconv/1.17: Appending PATH environment var: /home/wouter/.conan/data/libiconv/1.17/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/bin
libjpeg/9e: Already installed!
libwebp/1.2.4: Already installed!
nlohmann_json/3.10.5: Already installed!
openssl/1.1.1q: Already installed!
qhull/8.0.1: Already installed!
qhull/8.0.1: Appending PATH environment variable: /home/wouter/.conan/data/qhull/8.0.1/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/bin
sqlite3/3.39.3: Already installed!
sqlite3/3.39.3: Appending PATH env var with : /home/wouter/.conan/data/sqlite3/3.39.3/_/_/package/668a23a956a1ae835b578205ecc8274cfd29ae40/bin
xz_utils/5.2.5: Already installed!
zlib/1.2.12: Already installed!
zstd/1.5.2: Already installed!
libcurl/7.83.1: Already installed!
libpng/1.6.38: Already installed!
libtiff/4.4.0: Already installed!
proj/9.0.1: Already installed!
proj/9.0.1: Prepending to PROJ_LIB environment variable: /home/wouter/.conan/data/proj/9.0.1/_/_/package/99b6ab978018cd08c18492654e8dc19b6173e331/res
proj/9.0.1: Appending PATH environment variable: /home/wouter/.conan/data/proj/9.0.1/_/_/package/99b6ab978018cd08c18492654e8dc19b6173e331/bin
libgeotiff/1.7.1: Already installed!
gdal/3.5.2: WARN: Build folder is dirty, removing it: /home/wouter/.conan/data/gdal/3.5.2/_/_/build/55d9a32157142351b93e62d5556b6d46cb31a528
gdal/3.5.2: Copying sources to build folder
gdal/3.5.2: Building your package in /home/wouter/.conan/data/gdal/3.5.2/_/_/build/55d9a32157142351b93e62d5556b6d46cb31a528
gdal/3.5.2: Generator cmake_find_package created Findjson-c.cmake
gdal/3.5.2: Generator cmake_find_package created FindGeoTIFF.cmake
gdal/3.5.2: Generator cmake_find_package created Findgeos.cmake
gdal/3.5.2: Generator cmake_find_package created FindGIF.cmake
gdal/3.5.2: Generator cmake_find_package created FindIconv.cmake
gdal/3.5.2: Generator cmake_find_package created FindPNG.cmake
gdal/3.5.2: Generator cmake_find_package created FindQhull.cmake
gdal/3.5.2: Generator cmake_find_package created Findproj.cmake
gdal/3.5.2: Generator cmake_find_package created FindTIFF.cmake
gdal/3.5.2: Generator cmake_find_package created Findnlohmann_json.cmake
gdal/3.5.2: Generator cmake_find_package created FindSQLite3.cmake
gdal/3.5.2: Generator cmake_find_package created FindCURL.cmake
gdal/3.5.2: Generator cmake_find_package created FindZLIB.cmake
gdal/3.5.2: Generator cmake_find_package created Findlibdeflate.cmake
gdal/3.5.2: Generator cmake_find_package created FindLibLZMA.cmake
gdal/3.5.2: Generator cmake_find_package created FindJPEG.cmake
gdal/3.5.2: Generator cmake_find_package created Findjbig.cmake
gdal/3.5.2: Generator cmake_find_package created Findzstd.cmake
gdal/3.5.2: Generator cmake_find_package created FindWebP.cmake
gdal/3.5.2: Generator cmake_find_package created FindOpenSSL.cmake
gdal/3.5.2: Generator cmake created conanbuildinfo.cmake
gdal/3.5.2: Aggregating env generators
gdal/3.5.2: Calling build()
self.options.with_jpeg: libjpeg
CMAKE_BUILD_TYPE  =  Release
CONAN_IN_LOCAL_CACHE  =  ON
CONAN_COMPILER  =  gcc
CONAN_COMPILER_VERSION  =  12
CONAN_CXX_FLAGS  =  -m64
CONAN_SHARED_LINKER_FLAGS  =  -m64
CONAN_C_FLAGS  =  -m64
CONAN_LIBCXX  =  libstdc++11
BUILD_SHARED_LIBS  =  ON
CMAKE_INSTALL_PREFIX  =  /home/wouter/.conan/data/gdal/3.5.2/_/_/package/55d9a32157142351b93e62d5556b6d46cb31a528
CMAKE_INSTALL_BINDIR  =  bin
CMAKE_INSTALL_SBINDIR  =  bin
CMAKE_INSTALL_LIBEXECDIR  =  bin
CMAKE_INSTALL_LIBDIR  =  lib
CMAKE_INSTALL_INCLUDEDIR  =  include
CMAKE_INSTALL_OLDINCLUDEDIR  =  include
CMAKE_INSTALL_DATAROOTDIR  =  share
CMAKE_MODULE_PATH  =  /home/wouter/.conan/data/gdal/3.5.2/_/_/build/55d9a32157142351b93e62d5556b6d46cb31a528
CMAKE_EXPORT_NO_PACKAGE_REGISTRY  =  ON
CONAN_EXPORTED  =  1
GDAL_OBJECT_LIBRARIES_POSITION_INDEPENDENT_CODE  =  True
BUILD_JAVA_BINDINGS  =  False
BUILD_CSHARP_BINDINGS  =  False
BUILD_PYTHON_BINDINGS  =  False
BUILD_TESTING  =  False
GDAL_USE_ZLIB_INTERNAL  =  False
GDAL_USE_JSONC_INTERNAL  =  False
GDAL_USE_JPEG_INTERNAL  =  False
GDAL_USE_JPEG12_INTERNAL  =  False
GDAL_USE_TIFF_INTERNAL  =  False
GDAL_USE_GEOTIFF_INTERNAL  =  False
GDAL_USE_GIF_INTERNAL  =  False
GDAL_USE_PNG_INTERNAL  =  False
GDAL_USE_LERC_INTERNAL  =  True
GDAL_USE_SHAPELIB_INTERNAL  =  True
BUILD_APPS  =  False
SQLite3_HAS_COLUMN_METADATA  =  True
SQLite3_HAS_RTREE  =  True
GDAL_USE_JSONC  =  True
GDAL_CONAN_PACKAGE_FOR_JSONC  =  json-c
GDAL_USE_GEOTIFF  =  True
GDAL_CONAN_PACKAGE_FOR_GEOTIFF  =  libgeotiff
TARGET_FOR_GEOTIFF  =  GeoTIFF::GeoTIFF
GDAL_USE_ARMADILLO  =  False
Armadillo_FOUND  =  False
GDAL_USE_ARROW  =  False
Arrow_FOUND  =  False
GDAL_USE_BLOSC  =  False
Blosc_FOUND  =  False
GDAL_USE_CFITSIO  =  False
CFITSIO_FOUND  =  False
GDAL_USE_CRYPTOPP  =  False
CryptoPP_FOUND  =  False
GDAL_USE_CURL  =  False
CURL_FOUND  =  False
GDAL_USE_CRNLIB  =  False
Crnlib_FOUND  =  False
GDAL_USE_EXPAT  =  False
EXPAT_FOUND  =  False
GDAL_USE_OPENEXR  =  False
OpenEXR_FOUND  =  False
GDAL_USE_FREEXL  =  False
FreeXL_FOUND  =  False
GDAL_USE_GEOS  =  True
GDAL_CONAN_PACKAGE_FOR_GEOS  =  geos
TARGET_FOR_GEOS  =  GEOS::geos_c
GDAL_USE_GIF  =  True
GDAL_CONAN_PACKAGE_FOR_GIF  =  giflib
TARGET_FOR_GIF  =  GIF::GIF
GDAL_USE_GTA  =  False
GTA_FOUND  =  False
GDAL_USE_HDF4  =  False
HDF4_FOUND  =  False
GDAL_USE_HDF5  =  False
HDF5_FOUND  =  False
GDAL_USE_HEIF  =  False
HEIF_FOUND  =  False
GDAL_USE_KEA  =  False
KEA_FOUND  =  False
GDAL_USE_DEFLATE  =  True
GDAL_CONAN_PACKAGE_FOR_DEFLATE  =  libdeflate
TARGET_FOR_DEFLATE  =  None
GDAL_USE_ICONV  =  True
GDAL_CONAN_PACKAGE_FOR_ICONV  =  libiconv
TARGET_FOR_ICONV  =  Iconv::Iconv
GDAL_USE_JPEG  =  True
GDAL_CONAN_PACKAGE_FOR_JPEG  =  libjpeg
TARGET_FOR_JPEG  =  JPEG::JPEG
GDAL_USE_LIBKML  =  False
LibKML_FOUND  =  False
GDAL_USE_TIFF  =  True
GDAL_CONAN_PACKAGE_FOR_TIFF  =  libtiff
TARGET_FOR_TIFF  =  TIFF::TIFF
GDAL_USE_LZ4  =  False
LZ4_FOUND  =  False
GDAL_USE_MONGOCXX  =  False
MONGOCXX_FOUND  =  False
MYSQL_FOUND  =  False
GDAL_USE_NETCDF  =  False
NetCDF_FOUND  =  False
GDAL_USE_ODBC  =  False
ODBC_FOUND  =  False
GDAL_USE_OPENJPEG  =  False
OPENJPEG_FOUND  =  False
GDAL_USE_OPENSSL  =  False
OpenSSL_FOUND  =  False
GDAL_USE_PCRE  =  False
PCRE_FOUND  =  False
GDAL_USE_PCRE2  =  False
PCRE2_FOUND  =  False
GDAL_USE_PDFIUM  =  False
PDFIUM_FOUND  =  False
GDAL_USE_POSTGRESQL  =  False
PostgreSQL_FOUND  =  False
GDAL_USE_PNG  =  True
GDAL_CONAN_PACKAGE_FOR_PNG  =  libpng
TARGET_FOR_PNG  =  PNG::PNG
GDAL_USE_PODOFO  =  False
Podofo_FOUND  =  False
GDAL_USE_POPPLER  =  False
Poppler_FOUND  =  False
GDAL_USE_PROJ  =  True
GDAL_CONAN_PACKAGE_FOR_PROJ  =  proj
TARGET_FOR_PROJ  =  PROJ::proj
GDAL_USE_QHULL  =  True
GDAL_CONAN_PACKAGE_FOR_QHULL  =  qhull
TARGET_FOR_QHULL  =  Qhull::qhullstatic_r
GDAL_USE_SQLITE3  =  True
GDAL_CONAN_PACKAGE_FOR_SQLITE3  =  sqlite3
TARGET_FOR_SQLITE3  =  SQLite::SQLite3
GDAL_USE_WEBP  =  False
WebP_FOUND  =  False
GDAL_USE_XERCESC  =  False
XercesC_FOUND  =  False
GDAL_USE_LIBXML2  =  False
LibXml2_FOUND  =  False
GDAL_USE_ZLIB  =  True
GDAL_CONAN_PACKAGE_FOR_ZLIB  =  zlib
TARGET_FOR_ZLIB  =  ZLIB::ZLIB
GDAL_USE_ZSTD  =  False
ZSTD_FOUND  =  False
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Conan: called by CMake conan helper
-- Conan: called inside local cache
-- Conan: Adjusting output directories
-- Conan: Using cmake targets configuration
-- Library json-c found /home/wouter/.conan/data/json-c/0.16/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libjson-c.a
-- Library geotiff found /home/wouter/.conan/data/libgeotiff/1.7.1/_/_/package/8d3c9381318f61fd0370fef4a1399cb765654c6f/lib/libgeotiff.a
-- Library geos_c found /home/wouter/.conan/data/geos/3.11.0/_/_/package/966cfa8937722db16d85a2004f297eebcb07a2d9/lib/libgeos_c.a
-- Library geos found /home/wouter/.conan/data/geos/3.11.0/_/_/package/966cfa8937722db16d85a2004f297eebcb07a2d9/lib/libgeos.a
-- Library gif found /home/wouter/.conan/data/giflib/5.2.1/_/_/package/13f6ba77504f4dbbcab51bcfbcf5f927242f8620/lib/libgif.a
-- Library iconv found /home/wouter/.conan/data/libiconv/1.17/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libiconv.a
-- Library charset found /home/wouter/.conan/data/libiconv/1.17/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libcharset.a
-- Library png found /home/wouter/.conan/data/libpng/1.6.38/_/_/package/c50ec4bac288fa759d0037cc4023b4bbefd75ad4/lib/libpng.a
-- Library qhullstatic_r found /home/wouter/.conan/data/qhull/8.0.1/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libqhullstatic_r.a
-- Library proj found /home/wouter/.conan/data/proj/9.0.1/_/_/package/99b6ab978018cd08c18492654e8dc19b6173e331/lib/libproj.a
-- Library tiffxx found /home/wouter/.conan/data/libtiff/4.4.0/_/_/package/916aa3b44fbe15540cfe753a8dcd8e2b5bf328dc/lib/libtiffxx.a
-- Library tiff found /home/wouter/.conan/data/libtiff/4.4.0/_/_/package/916aa3b44fbe15540cfe753a8dcd8e2b5bf328dc/lib/libtiff.a
-- Library sqlite3 found /home/wouter/.conan/data/sqlite3/3.39.3/_/_/package/668a23a956a1ae835b578205ecc8274cfd29ae40/lib/libsqlite3.a
-- Library curl found /home/wouter/.conan/data/libcurl/7.83.1/_/_/package/9839891da051bc00c1bf0626a64264d44ca13263/lib/libcurl.a
-- Library z found /home/wouter/.conan/data/zlib/1.2.12/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libz.a
-- Library deflate found /home/wouter/.conan/data/libdeflate/1.12/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libdeflate.a
-- Library lzma found /home/wouter/.conan/data/xz_utils/5.2.5/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/liblzma.a
-- Library jpeg found /home/wouter/.conan/data/libjpeg/9e/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libjpeg.a
-- Library jbig found /home/wouter/.conan/data/jbig/20160605/_/_/package/5975ffdb4c800ef1934c0b8a9542d9b05e891829/lib/libjbig.a
-- Library zstd found /home/wouter/.conan/data/zstd/1.5.2/_/_/package/782b021ae04def4d8530bde4b8243c2e1608b82b/lib/libzstd.a
-- Library webpdecoder found /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebpdecoder.a
-- Library webpdemux found /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebpdemux.a
-- Library webpmux found /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebpmux.a
-- Library webp found /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebp.a
-- Library ssl found /home/wouter/.conan/data/openssl/1.1.1q/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libssl.a
-- Library crypto found /home/wouter/.conan/data/openssl/1.1.1q/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libcrypto.a
-- Conan: Adjusting default RPATHs Conan policies
-- Conan: Adjusting language standard
-- Conan: Compiler GCC>=5, checking major version 12
-- Conan: Checking correct version: 12
-- Conan: C++ stdlib: libstdc++11
-- Conan: Using autogenerated FindCURL.cmake
-- Found CURL: 7.83.1 (found version "7.83.1") 
-- Library curl found /home/wouter/.conan/data/libcurl/7.83.1/_/_/package/9839891da051bc00c1bf0626a64264d44ca13263/lib/libcurl.a
-- Found: /home/wouter/.conan/data/libcurl/7.83.1/_/_/package/9839891da051bc00c1bf0626a64264d44ca13263/lib/libcurl.a
-- Conan: Using autogenerated FindOpenSSL.cmake
-- Found OpenSSL: 1.1.1q (found version "1.1.1q") 
-- Library ssl found /home/wouter/.conan/data/openssl/1.1.1q/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libssl.a
-- Found: /home/wouter/.conan/data/openssl/1.1.1q/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libssl.a
-- Library crypto found /home/wouter/.conan/data/openssl/1.1.1q/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libcrypto.a
-- Found: /home/wouter/.conan/data/openssl/1.1.1q/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libcrypto.a
-- Library crypto found /home/wouter/.conan/data/openssl/1.1.1q/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libcrypto.a
-- Found: /home/wouter/.conan/data/openssl/1.1.1q/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libcrypto.a
-- Library ssl found /home/wouter/.conan/data/openssl/1.1.1q/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libssl.a
-- Found: /home/wouter/.conan/data/openssl/1.1.1q/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libssl.a
-- Conan: Using autogenerated FindZLIB.cmake
-- Found ZLIB: 1.2.12 (found version "1.2.12") 
-- Library z found /home/wouter/.conan/data/zlib/1.2.12/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libz.a
-- Found: /home/wouter/.conan/data/zlib/1.2.12/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libz.a
-- Library curl found /home/wouter/.conan/data/libcurl/7.83.1/_/_/package/9839891da051bc00c1bf0626a64264d44ca13263/lib/libcurl.a
-- Found: /home/wouter/.conan/data/libcurl/7.83.1/_/_/package/9839891da051bc00c1bf0626a64264d44ca13263/lib/libcurl.a
-- Conan: Using autogenerated FindGIF.cmake
-- Found GIF: 5.2.1 (found version "5.2.1") 
-- Library gif found /home/wouter/.conan/data/giflib/5.2.1/_/_/package/13f6ba77504f4dbbcab51bcfbcf5f927242f8620/lib/libgif.a
-- Found: /home/wouter/.conan/data/giflib/5.2.1/_/_/package/13f6ba77504f4dbbcab51bcfbcf5f927242f8620/lib/libgif.a
-- Conan: Using autogenerated FindGeoTIFF.cmake
-- Found GeoTIFF: 1.7.1 (found version "1.7.1") 
-- Library geotiff found /home/wouter/.conan/data/libgeotiff/1.7.1/_/_/package/8d3c9381318f61fd0370fef4a1399cb765654c6f/lib/libgeotiff.a
-- Found: /home/wouter/.conan/data/libgeotiff/1.7.1/_/_/package/8d3c9381318f61fd0370fef4a1399cb765654c6f/lib/libgeotiff.a
-- Conan: Using autogenerated FindTIFF.cmake
-- Found TIFF: 4.4.0 (found version "4.4.0") 
-- Library tiffxx found /home/wouter/.conan/data/libtiff/4.4.0/_/_/package/916aa3b44fbe15540cfe753a8dcd8e2b5bf328dc/lib/libtiffxx.a
-- Found: /home/wouter/.conan/data/libtiff/4.4.0/_/_/package/916aa3b44fbe15540cfe753a8dcd8e2b5bf328dc/lib/libtiffxx.a
-- Library tiff found /home/wouter/.conan/data/libtiff/4.4.0/_/_/package/916aa3b44fbe15540cfe753a8dcd8e2b5bf328dc/lib/libtiff.a
-- Found: /home/wouter/.conan/data/libtiff/4.4.0/_/_/package/916aa3b44fbe15540cfe753a8dcd8e2b5bf328dc/lib/libtiff.a
-- Dependency ZLIB already found
-- Conan: Using autogenerated Findlibdeflate.cmake
-- Found libdeflate: 1.12 (found version "1.12") 
-- Library deflate found /home/wouter/.conan/data/libdeflate/1.12/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libdeflate.a
-- Skipping already existing target: CONAN_LIB::libdeflate_deflate
-- Found: /home/wouter/.conan/data/libdeflate/1.12/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libdeflate.a
-- Conan: Using autogenerated FindLibLZMA.cmake
-- Found LibLZMA: 5.2.5 (found version "5.2.5") 
-- Library lzma found /home/wouter/.conan/data/xz_utils/5.2.5/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/liblzma.a
-- Found: /home/wouter/.conan/data/xz_utils/5.2.5/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/liblzma.a
-- Conan: Using autogenerated FindJPEG.cmake
-- Found JPEG: 9e (found version "9e") 
-- Library jpeg found /home/wouter/.conan/data/libjpeg/9e/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libjpeg.a
-- Found: /home/wouter/.conan/data/libjpeg/9e/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libjpeg.a
-- Conan: Using autogenerated Findjbig.cmake
-- Found jbig: 20160605 (found version "20160605") 
-- Library jbig found /home/wouter/.conan/data/jbig/20160605/_/_/package/5975ffdb4c800ef1934c0b8a9542d9b05e891829/lib/libjbig.a
-- Skipping already existing target: CONAN_LIB::jbig_jbig
-- Found: /home/wouter/.conan/data/jbig/20160605/_/_/package/5975ffdb4c800ef1934c0b8a9542d9b05e891829/lib/libjbig.a
-- Conan: Using autogenerated Findzstd.cmake
-- Found zstd: 1.5.2 (found version "1.5.2") 
-- Library zstd found /home/wouter/.conan/data/zstd/1.5.2/_/_/package/782b021ae04def4d8530bde4b8243c2e1608b82b/lib/libzstd.a
-- Skipping already existing target: CONAN_LIB::zstd_zstd
-- Found: /home/wouter/.conan/data/zstd/1.5.2/_/_/package/782b021ae04def4d8530bde4b8243c2e1608b82b/lib/libzstd.a
-- Library zstd found /home/wouter/.conan/data/zstd/1.5.2/_/_/package/782b021ae04def4d8530bde4b8243c2e1608b82b/lib/libzstd.a
-- Found: /home/wouter/.conan/data/zstd/1.5.2/_/_/package/782b021ae04def4d8530bde4b8243c2e1608b82b/lib/libzstd.a
-- Conan: Using autogenerated FindWebP.cmake
-- Found WebP: 1.2.4 (found version "1.2.4") 
-- Library webpdecoder found /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebpdecoder.a
-- Found: /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebpdecoder.a
-- Library webpdemux found /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebpdemux.a
-- Found: /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebpdemux.a
-- Library webpmux found /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebpmux.a
-- Found: /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebpmux.a
-- Library webp found /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebp.a
-- Found: /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebp.a
-- Library webp found /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebp.a
-- Found: /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebp.a
-- Library webpmux found /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebpmux.a
-- Found: /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebpmux.a
-- Library webpdemux found /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebpdemux.a
-- Found: /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebpdemux.a
-- Library webpdecoder found /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebpdecoder.a
-- Found: /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebpdecoder.a
-- Conan: Using autogenerated Findproj.cmake
-- Found proj: 9.0.1 (found version "9.0.1") 
-- Library proj found /home/wouter/.conan/data/proj/9.0.1/_/_/package/99b6ab978018cd08c18492654e8dc19b6173e331/lib/libproj.a
-- Found: /home/wouter/.conan/data/proj/9.0.1/_/_/package/99b6ab978018cd08c18492654e8dc19b6173e331/lib/libproj.a
-- Conan: Using autogenerated Findnlohmann_json.cmake
-- Found nlohmann_json: 3.10.5 (found version "3.10.5") 
-- Conan: Using autogenerated FindSQLite3.cmake
-- Found SQLite3: 3.39.3 (found version "3.39.3") 
-- Library sqlite3 found /home/wouter/.conan/data/sqlite3/3.39.3/_/_/package/668a23a956a1ae835b578205ecc8274cfd29ae40/lib/libsqlite3.a
-- Found: /home/wouter/.conan/data/sqlite3/3.39.3/_/_/package/668a23a956a1ae835b578205ecc8274cfd29ae40/lib/libsqlite3.a
-- Library sqlite3 found /home/wouter/.conan/data/sqlite3/3.39.3/_/_/package/668a23a956a1ae835b578205ecc8274cfd29ae40/lib/libsqlite3.a
-- Found: /home/wouter/.conan/data/sqlite3/3.39.3/_/_/package/668a23a956a1ae835b578205ecc8274cfd29ae40/lib/libsqlite3.a
-- Conan: Dependency TIFF already found
-- Conan: Dependency CURL already found
-- Library proj found /home/wouter/.conan/data/proj/9.0.1/_/_/package/99b6ab978018cd08c18492654e8dc19b6173e331/lib/libproj.a
-- Found: /home/wouter/.conan/data/proj/9.0.1/_/_/package/99b6ab978018cd08c18492654e8dc19b6173e331/lib/libproj.a
-- Conan: Using autogenerated FindIconv.cmake
-- Found Iconv: 1.17 (found version "1.17") 
-- Library iconv found /home/wouter/.conan/data/libiconv/1.17/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libiconv.a
-- Found: /home/wouter/.conan/data/libiconv/1.17/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libiconv.a
-- Library charset found /home/wouter/.conan/data/libiconv/1.17/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libcharset.a
-- Found: /home/wouter/.conan/data/libiconv/1.17/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libcharset.a
-- Conan: Using autogenerated FindJPEG.cmake
-- Library jpeg found /home/wouter/.conan/data/libjpeg/9e/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libjpeg.a
-- Skipping already existing target: CONAN_LIB::JPEG_jpeg
-- Found: /home/wouter/.conan/data/libjpeg/9e/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libjpeg.a
-- Conan: Using autogenerated FindLibLZMA.cmake
-- Library lzma found /home/wouter/.conan/data/xz_utils/5.2.5/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/liblzma.a
-- Skipping already existing target: CONAN_LIB::LibLZMA_lzma
-- Found: /home/wouter/.conan/data/xz_utils/5.2.5/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/liblzma.a
-- Conan: Using autogenerated FindOpenSSL.cmake
-- Library ssl found /home/wouter/.conan/data/openssl/1.1.1q/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libssl.a
-- Skipping already existing target: CONAN_LIB::OpenSSL_ssl
-- Found: /home/wouter/.conan/data/openssl/1.1.1q/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libssl.a
-- Library crypto found /home/wouter/.conan/data/openssl/1.1.1q/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libcrypto.a
-- Skipping already existing target: CONAN_LIB::OpenSSL_crypto
-- Found: /home/wouter/.conan/data/openssl/1.1.1q/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libcrypto.a
-- Library crypto found /home/wouter/.conan/data/openssl/1.1.1q/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libcrypto.a
-- Skipping already existing target: CONAN_LIB::OpenSSL_Crypto_crypto
-- Found: /home/wouter/.conan/data/openssl/1.1.1q/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libcrypto.a
-- Library ssl found /home/wouter/.conan/data/openssl/1.1.1q/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libssl.a
-- Skipping already existing target: CONAN_LIB::OpenSSL_SSL_ssl
-- Found: /home/wouter/.conan/data/openssl/1.1.1q/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libssl.a
-- Conan: Using autogenerated FindPNG.cmake
-- Found PNG: 1.6.38 (found version "1.6.38") 
-- Library png found /home/wouter/.conan/data/libpng/1.6.38/_/_/package/c50ec4bac288fa759d0037cc4023b4bbefd75ad4/lib/libpng.a
-- Found: /home/wouter/.conan/data/libpng/1.6.38/_/_/package/c50ec4bac288fa759d0037cc4023b4bbefd75ad4/lib/libpng.a
-- Dependency ZLIB already found
-- Conan: Using autogenerated FindQhull.cmake
-- Found Qhull: 8.0.1 (found version "8.0.1") 
-- Library qhullstatic_r found /home/wouter/.conan/data/qhull/8.0.1/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libqhullstatic_r.a
-- Found: /home/wouter/.conan/data/qhull/8.0.1/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libqhullstatic_r.a
-- Library qhullstatic_r found /home/wouter/.conan/data/qhull/8.0.1/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libqhullstatic_r.a
-- Found: /home/wouter/.conan/data/qhull/8.0.1/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libqhullstatic_r.a
-- Conan: Using autogenerated FindSQLite3.cmake
-- Library sqlite3 found /home/wouter/.conan/data/sqlite3/3.39.3/_/_/package/668a23a956a1ae835b578205ecc8274cfd29ae40/lib/libsqlite3.a
-- Skipping already existing target: CONAN_LIB::SQLite_sqlite3
-- Found: /home/wouter/.conan/data/sqlite3/3.39.3/_/_/package/668a23a956a1ae835b578205ecc8274cfd29ae40/lib/libsqlite3.a
-- Library sqlite3 found /home/wouter/.conan/data/sqlite3/3.39.3/_/_/package/668a23a956a1ae835b578205ecc8274cfd29ae40/lib/libsqlite3.a
-- Skipping already existing target: CONAN_LIB::SQLite_SQLite3_sqlite3
-- Found: /home/wouter/.conan/data/sqlite3/3.39.3/_/_/package/668a23a956a1ae835b578205ecc8274cfd29ae40/lib/libsqlite3.a
-- Conan: Using autogenerated FindTIFF.cmake
-- Library tiffxx found /home/wouter/.conan/data/libtiff/4.4.0/_/_/package/916aa3b44fbe15540cfe753a8dcd8e2b5bf328dc/lib/libtiffxx.a
-- Skipping already existing target: CONAN_LIB::TIFF_tiffxx
-- Found: /home/wouter/.conan/data/libtiff/4.4.0/_/_/package/916aa3b44fbe15540cfe753a8dcd8e2b5bf328dc/lib/libtiffxx.a
-- Library tiff found /home/wouter/.conan/data/libtiff/4.4.0/_/_/package/916aa3b44fbe15540cfe753a8dcd8e2b5bf328dc/lib/libtiff.a
-- Skipping already existing target: CONAN_LIB::TIFF_tiff
-- Found: /home/wouter/.conan/data/libtiff/4.4.0/_/_/package/916aa3b44fbe15540cfe753a8dcd8e2b5bf328dc/lib/libtiff.a
-- Conan: Using autogenerated FindWebP.cmake
-- Library webpdecoder found /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebpdecoder.a
-- Skipping already existing target: CONAN_LIB::WebP_webpdecoder
-- Found: /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebpdecoder.a
-- Library webpdemux found /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebpdemux.a
-- Skipping already existing target: CONAN_LIB::WebP_webpdemux
-- Found: /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebpdemux.a
-- Library webpmux found /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebpmux.a
-- Skipping already existing target: CONAN_LIB::WebP_webpmux
-- Found: /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebpmux.a
-- Library webp found /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebp.a
-- Skipping already existing target: CONAN_LIB::WebP_webp
-- Found: /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebp.a
-- Library webp found /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebp.a
-- Skipping already existing target: CONAN_LIB::WebP_webp_webp
-- Found: /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebp.a
-- Library webpmux found /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebpmux.a
-- Skipping already existing target: CONAN_LIB::WebP_libwebpmux_webpmux
-- Found: /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebpmux.a
-- Library webpdemux found /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebpdemux.a
-- Skipping already existing target: CONAN_LIB::WebP_webpdemux_webpdemux
-- Found: /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebpdemux.a
-- Library webpdecoder found /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebpdecoder.a
-- Skipping already existing target: CONAN_LIB::WebP_webpdecoder_webpdecoder
-- Found: /home/wouter/.conan/data/libwebp/1.2.4/_/_/package/e86e5edffa26735ce3290ca1aa01c9825e50dae2/lib/libwebpdecoder.a
-- Conan: Using autogenerated FindZLIB.cmake
-- Library z found /home/wouter/.conan/data/zlib/1.2.12/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libz.a
-- Skipping already existing target: CONAN_LIB::ZLIB_z
-- Found: /home/wouter/.conan/data/zlib/1.2.12/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libz.a
-- Conan: Using autogenerated Findgeos.cmake
-- Found geos: 3.11.0 (found version "3.11.0") 
-- Library geos_c found /home/wouter/.conan/data/geos/3.11.0/_/_/package/966cfa8937722db16d85a2004f297eebcb07a2d9/lib/libgeos_c.a
-- Found: /home/wouter/.conan/data/geos/3.11.0/_/_/package/966cfa8937722db16d85a2004f297eebcb07a2d9/lib/libgeos_c.a
-- Library geos found /home/wouter/.conan/data/geos/3.11.0/_/_/package/966cfa8937722db16d85a2004f297eebcb07a2d9/lib/libgeos.a
-- Found: /home/wouter/.conan/data/geos/3.11.0/_/_/package/966cfa8937722db16d85a2004f297eebcb07a2d9/lib/libgeos.a
-- Library geos found /home/wouter/.conan/data/geos/3.11.0/_/_/package/966cfa8937722db16d85a2004f297eebcb07a2d9/lib/libgeos.a
-- Found: /home/wouter/.conan/data/geos/3.11.0/_/_/package/966cfa8937722db16d85a2004f297eebcb07a2d9/lib/libgeos.a
-- Library geos_c found /home/wouter/.conan/data/geos/3.11.0/_/_/package/966cfa8937722db16d85a2004f297eebcb07a2d9/lib/libgeos_c.a
-- Found: /home/wouter/.conan/data/geos/3.11.0/_/_/package/966cfa8937722db16d85a2004f297eebcb07a2d9/lib/libgeos_c.a
-- Conan: Using autogenerated Findjbig.cmake
-- Library jbig found /home/wouter/.conan/data/jbig/20160605/_/_/package/5975ffdb4c800ef1934c0b8a9542d9b05e891829/lib/libjbig.a
-- Skipping already existing target: CONAN_LIB::jbig_jbig
-- Found: /home/wouter/.conan/data/jbig/20160605/_/_/package/5975ffdb4c800ef1934c0b8a9542d9b05e891829/lib/libjbig.a
-- Conan: Using autogenerated Findjson-c.cmake
-- Found json-c: 0.16 (found version "0.16") 
-- Library json-c found /home/wouter/.conan/data/json-c/0.16/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libjson-c.a
-- Skipping already existing target: CONAN_LIB::json-c_json-c
-- Found: /home/wouter/.conan/data/json-c/0.16/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libjson-c.a
-- Conan: Using autogenerated Findlibdeflate.cmake
-- Library deflate found /home/wouter/.conan/data/libdeflate/1.12/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libdeflate.a
-- Skipping already existing target: CONAN_LIB::libdeflate_deflate
-- Found: /home/wouter/.conan/data/libdeflate/1.12/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libdeflate.a
-- Conan: Using autogenerated Findnlohmann_json.cmake
-- Conan: Using autogenerated Findproj.cmake
-- Library proj found /home/wouter/.conan/data/proj/9.0.1/_/_/package/99b6ab978018cd08c18492654e8dc19b6173e331/lib/libproj.a
-- Skipping already existing target: CONAN_LIB::PROJ_proj
-- Found: /home/wouter/.conan/data/proj/9.0.1/_/_/package/99b6ab978018cd08c18492654e8dc19b6173e331/lib/libproj.a
-- Conan: Dependency nlohmann_json already found
-- Conan: Dependency SQLite3 already found
-- Conan: Dependency TIFF already found
-- Conan: Dependency CURL already found
-- Library proj found /home/wouter/.conan/data/proj/9.0.1/_/_/package/99b6ab978018cd08c18492654e8dc19b6173e331/lib/libproj.a
-- Skipping already existing target: CONAN_LIB::PROJ_proj_proj
-- Found: /home/wouter/.conan/data/proj/9.0.1/_/_/package/99b6ab978018cd08c18492654e8dc19b6173e331/lib/libproj.a
-- Conan: Using autogenerated Findzstd.cmake
-- Library zstd found /home/wouter/.conan/data/zstd/1.5.2/_/_/package/782b021ae04def4d8530bde4b8243c2e1608b82b/lib/libzstd.a
-- Skipping already existing target: CONAN_LIB::zstd_zstd
-- Found: /home/wouter/.conan/data/zstd/1.5.2/_/_/package/782b021ae04def4d8530bde4b8243c2e1608b82b/lib/libzstd.a
-- Library zstd found /home/wouter/.conan/data/zstd/1.5.2/_/_/package/782b021ae04def4d8530bde4b8243c2e1608b82b/lib/libzstd.a
-- Skipping already existing target: CONAN_LIB::zstd_libzstd_static_zstd
-- Found: /home/wouter/.conan/data/zstd/1.5.2/_/_/package/782b021ae04def4d8530bde4b8243c2e1608b82b/lib/libzstd.a
-- Conan: Using autogenerated Findlibdeflate.cmake
-- Library deflate found /home/wouter/.conan/data/libdeflate/1.12/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libdeflate.a
-- Skipping already existing target: CONAN_LIB::libdeflate_deflate
-- Found: /home/wouter/.conan/data/libdeflate/1.12/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libdeflate.a
-- Conan: Using autogenerated FindGIF.cmake
-- Library gif found /home/wouter/.conan/data/giflib/5.2.1/_/_/package/13f6ba77504f4dbbcab51bcfbcf5f927242f8620/lib/libgif.a
-- Skipping already existing target: CONAN_LIB::GIF_gif
-- Found: /home/wouter/.conan/data/giflib/5.2.1/_/_/package/13f6ba77504f4dbbcab51bcfbcf5f927242f8620/lib/libgif.a
-- Conan: Using autogenerated FindSQLite3.cmake
-- Library sqlite3 found /home/wouter/.conan/data/sqlite3/3.39.3/_/_/package/668a23a956a1ae835b578205ecc8274cfd29ae40/lib/libsqlite3.a
-- Skipping already existing target: CONAN_LIB::SQLite_sqlite3
-- Found: /home/wouter/.conan/data/sqlite3/3.39.3/_/_/package/668a23a956a1ae835b578205ecc8274cfd29ae40/lib/libsqlite3.a
-- Library sqlite3 found /home/wouter/.conan/data/sqlite3/3.39.3/_/_/package/668a23a956a1ae835b578205ecc8274cfd29ae40/lib/libsqlite3.a
-- Skipping already existing target: CONAN_LIB::SQLite_SQLite3_sqlite3
-- Found: /home/wouter/.conan/data/sqlite3/3.39.3/_/_/package/668a23a956a1ae835b578205ecc8274cfd29ae40/lib/libsqlite3.a
-- Conan: Using autogenerated FindZLIB.cmake
-- Library z found /home/wouter/.conan/data/zlib/1.2.12/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libz.a
-- Skipping already existing target: CONAN_LIB::ZLIB_z
-- Found: /home/wouter/.conan/data/zlib/1.2.12/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libz.a
-- Performing Test test_sse
-- Performing Test test_sse - Success
-- Looking for C++ include xmmintrin.h
-- Looking for C++ include xmmintrin.h - found
-- Performing Test test_sse2
-- Performing Test test_sse2 - Success
-- Looking for C++ include emmintrin.h
-- Looking for C++ include emmintrin.h - found
-- Performing Test test_ssse3
-- Performing Test test_ssse3 - Success
-- Looking for C++ include tmmintrin.h
-- Looking for C++ include tmmintrin.h - found
-- Performing Test test_sse4.1
-- Performing Test test_sse4.1 - Success
-- Looking for C++ include smmintrin.h
-- Looking for C++ include smmintrin.h - found
-- Performing Test test_avx
-- Performing Test test_avx - Success
-- Looking for C++ include immintrin.h
-- Looking for C++ include immintrin.h - found
-- Performing Test test_avx2
-- Performing Test test_avx2 - Success
-- Performing Test HAVE_WFLAG_ALL
-- Performing Test HAVE_WFLAG_ALL - Success
-- Performing Test HAVE_WFLAG_EXTRA
-- Performing Test HAVE_WFLAG_EXTRA - Success
-- Performing Test HAVE_WFLAG_INIT_SELF
-- Performing Test HAVE_WFLAG_INIT_SELF - Success
-- Performing Test HAVE_WFLAG_UNUSED_PARAMETER
-- Performing Test HAVE_WFLAG_UNUSED_PARAMETER - Success
-- Performing Test HAVE_WFLAG_MISSING_PROTOTYPES
-- Performing Test HAVE_WFLAG_MISSING_PROTOTYPES - Success
-- Performing Test HAVE_WFLAG_MISSING_DECLARATIONS
-- Performing Test HAVE_WFLAG_MISSING_DECLARATIONS - Success
-- Performing Test HAVE_WFLAG_SHORTEN_64_TO_32
-- Performing Test HAVE_WFLAG_SHORTEN_64_TO_32 - Failed
-- Performing Test HAVE_WFLAG_LOGICAL_OP
-- Performing Test HAVE_WFLAG_LOGICAL_OP - Success
-- Performing Test HAVE_WFLAG_SHADOW
-- Performing Test HAVE_WFLAG_SHADOW - Success
-- Performing Test HAVE_WFLAG_SHADOW_FIELD
-- Performing Test HAVE_WFLAG_SHADOW_FIELD - Failed
-- Performing Test HAVE_WFLAG_MISSING_INCLUDE_DIRS
-- Performing Test HAVE_WFLAG_MISSING_INCLUDE_DIRS - Success
-- Performing Test HAVE_WFLAG_FORMAT_SECURITY
-- Performing Test HAVE_WFLAG_FORMAT_SECURITY - Success
-- Performing Test HAVE_WFLAG_ERROR_VLA
-- Performing Test HAVE_WFLAG_ERROR_VLA - Success
-- Performing Test HAVE_WFLAG_NO_CLOBBERED
-- Performing Test HAVE_WFLAG_NO_CLOBBERED - Success
-- Performing Test HAVE_WFLAG_DATE_TIME
-- Performing Test HAVE_WFLAG_DATE_TIME - Success
-- Performing Test HAVE_WFLAG_NULL_DEREFERENCE
-- Performing Test HAVE_WFLAG_NULL_DEREFERENCE - Success
-- Performing Test HAVE_WFLAG_DUPLICATE_COND
-- Performing Test HAVE_WFLAG_DUPLICATE_COND - Failed
-- Performing Test HAVE_WFLAG_EXTRA_SEMI
-- Performing Test HAVE_WFLAG_EXTRA_SEMI - Success
-- Performing Test HAVE_WFLAG_COMMA
-- Performing Test HAVE_WFLAG_COMMA - Failed
-- Performing Test HAVE_WFLAG_FLOAT_CONVERSION
-- Performing Test HAVE_WFLAG_FLOAT_CONVERSION - Success
-- Performing Test HAVE_WFLAG_DOCUMENTATION_AND_NO_DEPRECATED
-- Performing Test HAVE_WFLAG_DOCUMENTATION_AND_NO_DEPRECATED - Failed
-- Performing Test HAVE_WFLAG_UNUSED_PRIVATE_FIELD
-- Performing Test HAVE_WFLAG_UNUSED_PRIVATE_FIELD - Failed
-- Performing Test HAVE_WFLAG_NON_VIRTUAL_DTOR
-- Performing Test HAVE_WFLAG_NON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_WFLAG_OVERLOADED_VIRTUAL
-- Performing Test HAVE_WFLAG_OVERLOADED_VIRTUAL - Success
-- Performing Test HAVE_WFLAG_SUGGEST_OVERRIDE
-- Performing Test HAVE_WFLAG_SUGGEST_OVERRIDE - Success
-- Performing Test HAVE_FLAG_NO_OPERATOR_NAMES
-- Performing Test HAVE_FLAG_NO_OPERATOR_NAMES - Success
-- Performing Test HAVE_GCC_WARNING_ZERO_AS_NULL_POINTER_CONSTANT
-- Performing Test HAVE_GCC_WARNING_ZERO_AS_NULL_POINTER_CONSTANT - Success
-- Performing Test HAVE_WFLAG_OLD_STYLE_CAST
-- Performing Test HAVE_WFLAG_OLD_STYLE_CAST - Success
-- Performing Test HAVE_WFLAG_EFFCXX
-- Performing Test HAVE_WFLAG_EFFCXX - Success
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Looking for getcwd
-- Looking for getcwd - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for locale.h
-- Looking for locale.h - found
-- Looking for xlocale.h
-- Looking for xlocale.h - not found
-- Looking for direct.h
-- Looking for direct.h - not found
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of int
-- Check size of int - done
-- Check size of unsigned long
-- Check size of unsigned long - done
-- Check size of void*
-- Check size of void* - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Performing Test HAVE_PTHREAD_MUTEX_RECURSIVE
-- Performing Test HAVE_PTHREAD_MUTEX_RECURSIVE - Success
-- Performing Test HAVE_PTHREAD_MUTEX_ADAPTIVE_NP
-- Performing Test HAVE_PTHREAD_MUTEX_ADAPTIVE_NP - Success
-- Performing Test HAVE_PTHREAD_SPINLOCK
-- Performing Test HAVE_PTHREAD_SPINLOCK - Success
-- Performing Test HAVE_5ARGS_MREMAP
-- Performing Test HAVE_5ARGS_MREMAP - Success
-- Performing Test HAVE_PTHREAD_ATFORK
-- Performing Test HAVE_PTHREAD_ATFORK - Success
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for linux/fs.h
-- Looking for linux/fs.h - found
-- Looking for readlink
-- Looking for readlink - found
-- Looking for posix_spawnp
-- Looking for posix_spawnp - found
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Looking for vfork
-- Looking for vfork - found
-- Looking for mmap
-- Looking for mmap - found
-- Looking for sigaction
-- Looking for sigaction - found
-- Looking for statvfs
-- Looking for statvfs - found
-- Looking for statvfs64
-- Looking for statvfs64 - found
-- Looking for lstat
-- Looking for lstat - found
-- Looking for getrlimit
-- Looking for getrlimit - found
-- Looking for RLIMIT_AS
-- Looking for RLIMIT_AS - found
-- Looking for ftell64
-- Looking for ftell64 - not found
-- Looking for ftello64
-- Looking for ftello64 - found
-- Looking for fseek64
-- Looking for fseek64 - not found
-- Looking for fseeko64
-- Looking for fseeko64 - found
-- Looking for stat64
-- Looking for stat64 - found
-- Performing Test NO_UNIX_STDIO_64
-- Performing Test NO_UNIX_STDIO_64 - Failed
-- Looking for fopen64
-- Looking for fopen64 - found
-- Looking for ftruncate64
-- Looking for ftruncate64 - found
-- Performing Test HAVE_USELOCALE
-- Performing Test HAVE_USELOCALE - Success
-- Performing Test HAVE_HIDE_INTERNAL_SYMBOLS
-- Performing Test HAVE_HIDE_INTERNAL_SYMBOLS - Success
-- Performing Test HAVE_GCC_ATOMIC_BUILTINS
-- Performing Test HAVE_GCC_ATOMIC_BUILTINS - Success
-- Performing Test HAVE_GCC_BSWAP
-- Performing Test HAVE_GCC_BSWAP - Success
-- Performing Test HAVE_SC_PHYS_PAGES
-- Performing Test HAVE_SC_PHYS_PAGES - Success
-- Performing Test INT128_TEST
-- Performing Test INT128_TEST - Success
-- checking if sprintf can be overloaded for GDAL compilation
-- Performing Test DEPRECATE_SPRINTF
-- Performing Test DEPRECATE_SPRINTF - Failed
-- Looking for linux/userfaultfd.h
-- Looking for linux/userfaultfd.h - found
-- GDAL_VERSION          = 3.5.2
-- GDAL_ABI_FULL_VERSION = 31.0.2
-- GDAL_SOVERSION        = 31
dependency ODBC has no conan package
dependency ODBCCPP has no conan package
dependency MSSQL_NCLI has no conan package
dependency MSSQL_ODBC has no conan package
dependency MySQL has no conan package
dependency CURL has no conan package
Using conan package libiconv for dependency Iconv
-- Performing Test _ICONV_SECOND_ARGUMENT_IS_NOT_CONST
-- Performing Test _ICONV_SECOND_ARGUMENT_IS_NOT_CONST - Success
-- Performing Test ICONV_HAS_EXTRA_CHARSETS
-- Performing Test ICONV_HAS_EXTRA_CHARSETS - Success
dependency LibXml2 has no conan package
dependency EXPAT has no conan package
dependency XercesC has no conan package
Using conan package zlib for dependency ZLIB
Using conan package libdeflate for dependency Deflate
dependency OpenSSL has no conan package
dependency CryptoPP has no conan package
Using conan package proj for dependency PROJ
Using conan package libtiff for dependency TIFF
dependency ZSTD has no conan package
dependency SFCGAL has no conan package
Using conan package libgeotiff for dependency GeoTIFF
Using conan package libpng for dependency PNG
Using conan package libjpeg for dependency JPEG
Using conan package giflib for dependency GIF
Using conan package json-c for dependency JSONC
Setting include for json-c: /home/wouter/.conan/data/json-c/0.16/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/include;/home/wouter/.conan/data/json-c/0.16/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/include/json-c
dependency OpenCAD has no conan package
Using conan package qhull for dependency QHULL
dependency LERC has no conan package
dependency BRUNSLI has no conan package
dependency Shapelib has no conan package
dependency PCRE2 has no conan package
dependency PCRE has no conan package
Using conan package sqlite3 for dependency SQLite3
dependency SPATIALITE has no conan package
dependency RASTERLITE2 has no conan package
-- Could NOT find LibKML (missing: LIBKML_BASE_LIBRARY LIBKML_INCLUDE_DIR LIBKML_kmlengine_LIBRARY LIBKML_kmldom_LIBRARY LIBKML_kmlbase_LIBRARY) 
dependency HDF5 has no conan package
dependency WebP has no conan package
dependency FreeXL has no conan package
dependency GTA has no conan package
dependency MRSID has no conan package
dependency Armadillo has no conan package
dependency CFITSIO has no conan package
Using conan package geos for dependency GEOS
dependency HDF4 has no conan package
dependency KEA has no conan package
dependency ECW has no conan package
dependency NetCDF has no conan package
dependency OGDI has no conan package
dependency OpenCL has no conan package
dependency PostgreSQL has no conan package
dependency FYBA has no conan package
dependency LibLZMA has no conan package
dependency LZ4 has no conan package
dependency Blosc has no conan package
dependency JXL has no conan package
dependency Crnlib has no conan package
dependency IDB has no conan package
dependency RASDAMAN has no conan package
dependency rdb has no conan package
dependency TileDB has no conan package
dependency OpenEXR has no conan package
dependency MONGOCXX has no conan package
dependency HEIF has no conan package
-- Found OpenJPEG: /usr/lib/x86_64-linux-gnu/libopenjp2.so (found version "2.4.0") 
dependency HDFS has no conan package
dependency Poppler has no conan package
dependency PDFIUM has no conan package
dependency Podofo has no conan package
dependency Oracle has no conan package
dependency TEIGHA has no conan package
dependency FileGDB has no conan package
dependency KDU has no conan package
dependency LURATECH has no conan package
dependency Arrow has no conan package
dependency SWIG has no conan package
-- Found Perl: /usr/bin/perl (found version "5.34.0") 
-- Found JNI: /usr/lib/jvm/default-java/include  found components: AWT JVM 
-- Found Java: /usr/bin/java (found version "11.0.16") found components: Runtime Development 
-- Could NOT find CSharp (missing: CSHARP_TYPE CSHARP_VERSION CSHARP_COMPILER) 
-- Performing Test HAS_NO_UNDEFINED
-- Performing Test HAS_NO_UNDEFINED - Success
--   Target system:             Linux
--   Installation directory:    /home/wouter/.conan/data/gdal/3.5.2/_/_/package/55d9a32157142351b93e62d5556b6d46cb31a528
--   C++ Compiler type:         GNU
--   C compile command line:     /usr/bin/cc
--   C++ compile command line:   /usr/bin/c++
-- 
--   CMAKE_C_FLAGS:               -m64 -fvisibility=hidden
--   CMAKE_CXX_FLAGS:               -m64 -fvisibility=hidden
--   CMAKE_CXX11_STANDARD_COMPILE_OPTION:              -std=c++11
--   CMAKE_CXX11_EXTENSION_COMPILE_OPTION:              -std=gnu++11
--   CMAKE_EXE_LINKER_FLAGS:              
--   CMAKE_MODULE_LINKER_FLAGS:               -Wl,--no-undefined
--   CMAKE_SHARED_LINKER_FLAGS:               -m64 -Wl,--no-undefined
--   CMAKE_STATIC_LINKER_FLAGS:              
--   CMAKE_C_FLAGS_RELEASE:              -O3 -DNDEBUG
--   CMAKE_CXX_FLAGS_RELEASE:              -O3 -DNDEBUG
--   CMAKE_EXE_LINKER_FLAGS_RELEASE:              
--   CMAKE_MODULE_LINKER_FLAGS_RELEASE:              
--   CMAKE_SHARED_LINKER_FLAGS_RELEASE:              
--   CMAKE_STATIC_LINKER_FLAGS_RELEASE:              
-- 
-- Enabled drivers and features and found dependency packages
-- The following features have been enabled:

 * gdal_JPEG, JPEG image format
 * gdal_RAW, Raw formats:EOSAT FAST Format, FARSITE LCP and Vexcel MFF2 Image
 * gdal_GTIFF, GeoTIFF image format
 * gdal_MEM, Read/write data in Memory
 * gdal_VRT, Virtual GDAL Datasets
 * gdal_HFA, Erdas Imagine .img
 * gdal_SDTS, SDTS translator
 * gdal_NITF, National Imagery Transmission Format
 * gdal_GXF, GXF
 * gdal_AAIGRID, Arc/Info ASCII Grid Format.
 * gdal_CEOS, CEOS translator
 * gdal_SAR_CEOS, ASI CEOS translator
 * gdal_XPM, XPM image format
 * gdal_DTED, Military Elevation Data
 * gdal_JDEM, JDEM driver
 * gdal_ENVISAT, Envisat
 * gdal_ELAS, Earth Resources Laboratory Applications Software
 * gdal_FIT, FIT driver
 * gdal_L1B, NOAA Polar Orbiter Level 1b Data Set (AVHRR)
 * gdal_RS2, RS2 -- RadarSat 2 XML Product
 * gdal_ILWIS, Raster Map
 * gdal_RMF, RMF --- Raster Matrix Format
 * gdal_LEVELLER, Daylon Leveller heightfield
 * gdal_SGI, SGI Image driver
 * gdal_SRTMHGT, SRTM HGT File Read Support
 * gdal_IDRISI, Idrisi Raster Format
 * gdal_GSG, Implements the Golden Software Surfer 7 Binary Grid Format.
 * gdal_ERS, ERMapper .ERS
 * gdal_JAXAPALSAR, JAXA PALSAR Level 1.1 and Level 1.5 processed products support
 * gdal_DIMAP, SPOT Dimap Driver
 * gdal_GFF, Ground-based SAR Applitcations Testbed File Format driver
 * gdal_COSAR, COSAR -- TerraSAR-X Complex SAR Data Product
 * gdal_PDS, USGS Astrogeology ISIS Cube (Version 2)
 * gdal_ADRG, ADRG reader and ASRP/USRP Reader
 * gdal_COASP, DRDC Configurable Airborne SAR Processor (COASP) data reader
 * gdal_TSX, TerraSAR-X XML Product Support
 * gdal_TERRAGEN, Terragen&trade; Terrain File
 * gdal_BLX, Magellan BLX Topo File Format
 * gdal_MSGN, Meteosat Second Generation (MSG) Native Archive Format (.nat)
 * gdal_TIL, EarthWatch .TIL Driver
 * gdal_R, R Object Data Store
 * gdal_NORTHWOOD, NWT_GRD/NWT_GRC -- Northwood/Vertical Mapper File Format
 * gdal_SAGA, SAGA GIS Binary Driver
 * gdal_XYZ, ASCII Gridded XYZ
 * gdal_ESRIC, ESRI compact cache
 * gdal_HF2, HF2/HFZ heightfield raster
 * gdal_KMLSUPEROVERLAY
 * gdal_CTG, CTG driver
 * gdal_ZMAP, ZMAP
 * gdal_NGSGEOID, NOAA NGS Geoid Height Grids
 * gdal_IRIS, IRIS driver
 * gdal_MAP, OziExplorer .MAP
 * gdal_CALS, CALS type 1
 * gdal_SAFE, SAFE -- Sentinel-1 SAFE XML Product
 * gdal_SENTINEL2, Driver for Sentinel-2 Level-1B, Level-1C and Level-2A products.
 * gdal_PRF, PHOTOMOD Raster File
 * gdal_MRF, Meta raster format
 * gdal_WMTS, OGC Web Map Tile Service
 * gdal_GRIB, WMO General Regularly-distributed Information in Binary form
 * gdal_BMP, Microsoft Windows Device Independent Bitmap
 * gdal_TGA, TGA
 * gdal_STACTA, STACTA
 * gdal_OGCAPI, OGCAPI
 * gdal_BSB, Maptech/NOAA BSB Nautical Chart Format
 * gdal_AIGRID, Arc/Info Binary Grid Format
 * gdal_ARG, ARG: Azavea Raster Grid
 * gdal_USGSDEM, USGS ASCII DEM (and CDED)
 * gdal_AIRSAR, AirSAR Polarimetric Format
 * gdal_OZI, OZF2/OZFX3 raster
 * gdal_PCIDSK, PCI Geomatics Database File
 * gdal_SIGDEM, Scaled Integer Gridded DEM .sigdem Driver
 * gdal_RIK, RIK -- Swedish Grid Maps
 * gdal_STACIT, STACIT
 * gdal_PDF, Geospatial PDF
 * gdal_PNG, PNG image format
 * gdal_GIF, Graphics Interchange Format
 * gdal_ZARR, ZARR
 * gdal_RASTERLITE, Rasterlite - Rasters in SQLite DB
 * gdal_MBTILES, MBTile
 * gdal_PCRASTER, PCRaster CSF 2.0 raster file driver
 * ogr_MEM, Read/write driver for MEMORY virtual files
 * ogr_GEOJSON, GeoJSON/ESRIJSON/TopoJSON driver
 * ogr_TAB, MapInfo TAB and MIF/MID
 * ogr_SHAPE, ESRI shape-file
 * ogr_KML, KML
 * ogr_VRT, VRT - Virtual Format
 * ogr_AVC, AVC
 * ogr_GML, GML
 * ogr_CSV, CSV
 * ogr_DGN, DGN
 * ogr_GMT, GMT
 * ogr_NTF, NTF
 * ogr_S57, S57
 * ogr_TIGER, U.S. Census TIGER/Line
 * ogr_GEOCONCEPT, GEOCONCEPT
 * ogr_GEORSS, GEORSS
 * ogr_DXF, DXF
 * ogr_PGDUMP, PGDump
 * ogr_GPSBABEL, GPSBABEL
 * ogr_EDIGEO, EDIGEO
 * ogr_SXF, SXF
 * ogr_OPENFILEGDB, OPENFILEGDB
 * ogr_WASP, WAsP .map format
 * ogr_SELAFIN, OSELAFIN
 * ogr_JML, JML
 * ogr_VDV, VDV-451/VDV-452/INTREST Data Format
 * ogr_FLATGEOBUF, FlatGeobuf
 * ogr_MAPML, MapML
 * ogr_SDTS, SDTS
 * ogr_IDRISI, IDRISI
 * ogr_PDS, Planetary Data Systems TABLE
 * ogr_SQLITE, SQLite3 / Spatialite RDBMS
 * ogr_GPKG, GeoPackage
 * ogr_OSM, OpenStreetMap XML and PBF
 * ogr_VFK, Czech Cadastral Exchange Data Format
 * ogr_MVT, MVT
 * ogr_CAD, OpenCAD

-- The following OPTIONAL packages have been found:

 * Threads
 * OpenJPEG
 * Perl
   SWIG_PERL: Perl binding
 * JNI
   SWIG_JAVA: Java binding
 * Java

-- The following REQUIRED packages have been found:

 * libdeflate
 * GIF
   GIF compression library (external)
 * SQLite3
   Enable SQLite3 support (used by SQLite/Spatialite, GPKG, Rasterlite, MBTiles, etc.)
 * ZLIB
   zlib (external)

-- The following features have been disabled:

 * gdal_HEIF, HEIF
 * gdal_MSG, Meteosat Second Generation
 * gdal_WCS, OGC Web Coverage Service
 * gdal_HTTP, HTTP driver
 * gdal_NETCDF, NetCDF network Common Data Form
 * gdal_DAAS, Airbus DS Intelligence Data As A Service(DAAS)
 * gdal_EEDA, Earth Engine Data API
 * gdal_FITS, FITS Driver
 * gdal_RASDAMAN, Rasdaman GDAL driver
 * gdal_HDF5, Hierarchical Data Format Release 5 (HDF5)
 * gdal_PLMOSAIC, PLMosaic (Planet Labs Mosaics API)
 * gdal_WMS, Web Map Services
 * gdal_GTA, Generic Tagged Arrays
 * gdal_WEBP, WebP
 * gdal_HDF4, Hierarchical Data Format Release 4 (HDF4)
 * gdal_POSTGISRASTER, PostGIS Raster driver
 * gdal_DDS, DirectDraw Surface
 * gdal_KEA, Kea
 * gdal_JP2OPENJPEG, JPEG2000 driver based on OpenJPEG library
 * gdal_TILEDB, TileDB tiledb.io
 * gdal_EXR, EXR support via OpenEXR library
 * gdal_RDB, RIEGL RDB Map Pixel (.mpx) driver
 * gdal_JP2KAK, JPEG-2000 (based on Kakadu)
 * gdal_JPIPKAK, JPIP Streaming
 * gdal_JP2LURA, JPEG-2000 (based on Luratech)
 * gdal_SDE, ESRI ArcSDE Raster
 * gdal_MRSID, Multi-resolution Seamless Image Database
 * gdal_GEOR, Oracle Spatial GeoRaster
 * gdal_ECW, ERDAS JPEG2000 (.jp2)
 * ogr_GPX, GPX - GPS Exchange Format
 * ogr_GMLAS, GMLAS
 * ogr_SVG, Scalable Vector Graphics
 * ogr_CSW, CSW
 * ogr_DWG, DWG
 * ogr_FILEGDB, FileGDB
 * ogr_LIBKML, LibKML
 * ogr_NAS, NAS/ALKIS
 * ogr_PLSCENES, PLSCENES
 * ogr_SOSI, SOSI:Systematic Organization of Spatial Information
 * ogr_WFS, OGC WFS service
 * ogr_NGW, NextGIS Web
 * ogr_ELASTIC, ElasticSearch
 * ogr_AMIGOCLOUD, AMIGOCLOUD
 * ogr_CARTO, CARTO
 * ogr_ILI, ILI
 * ogr_MYSQL, MySQL
 * ogr_PG, PostGIS
 * ogr_MSSQLSPATIAL, MSSQLSPATIAL
 * ogr_ODBC, ODBC
 * ogr_PGEO, PGEO
 * ogr_XLSX, Microsoft Office Excel(xlsx)
 * ogr_XLS, Microsoft Office Excel(xls)
 * ogr_MONGODBV3, MongoDB V3
 * ogr_PARQUET, Parquet
 * ogr_ARROW, Arrow
 * ogr_OCI, Oracle OCI
 * ogr_IDB, IDB
 * ogr_ODS, ODS
 * ogr_OGDI, OGDI
 * ogr_LVBAG, LVBAG
 * ogr_HANA, SAP HANA

-- The following OPTIONAL packages have not been found:

 * LibKML
 * Dotnet
 * CSharp
   SWIG_CSharp: CSharp binding

-- Disabled components:

 * OPENSSL component has been detected, but is disabled with GDAL_USE_OPENSSL=False
 * ZSTD component has been detected, but is disabled with GDAL_USE_ZSTD=False
 * WEBP component has been detected, but is disabled with GDAL_USE_WEBP=False
 * OPENJPEG component has been detected, but is disabled with GDAL_USE_OPENJPEG=False


-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_EXPORT_NO_PACKAGE_REGISTRY


-- Build files have been written to: /home/wouter/.conan/data/gdal/3.5.2/_/_/build/55d9a32157142351b93e62d5556b6d46cb31a528/build
[  1%] Building CXX object source_subfolder/frmts/mrf/LERCV1/CMakeFiles/liblercv1.dir/Lerc1Image.cpp.o
[  1%] Building CXX object source_subfolder/port/CMakeFiles/cpl_iconv.dir/cpl_recode_iconv.cpp.o
[  1%] Building CXX object source_subfolder/frmts/iso8211/CMakeFiles/gdal_iso8211.dir/ddfmodule.cpp.o
[  1%] Building CXX object source_subfolder/frmts/iso8211/CMakeFiles/gdal_iso8211.dir/ddfutils.cpp.o
[  1%] Building CXX object source_subfolder/frmts/iso8211/CMakeFiles/gdal_iso8211.dir/ddffielddefn.cpp.o
[  1%] Building CXX object source_subfolder/frmts/iso8211/CMakeFiles/gdal_iso8211.dir/ddfrecord.cpp.o
[  1%] Building C object source_subfolder/ogr/ogrsf_frmts/shape/CMakeFiles/shapelib.dir/sbnsearch_wrapper.c.o
[  1%] Building C object source_subfolder/ogr/ogrsf_frmts/shape/CMakeFiles/shapelib.dir/shpopen_wrapper.c.o
[  1%] Building C object source_subfolder/ogr/ogrsf_frmts/shape/CMakeFiles/shapelib.dir/shptree_wrapper.c.o
[  1%] Building CXX object source_subfolder/third_party/LercLib/CMakeFiles/lerc.dir/BitMask.cpp.o
[  1%] Building CXX object source_subfolder/ogr/ogrsf_frmts/cad/libopencad/CMakeFiles/libopencad.dir/dwg/io.cpp.o
[  1%] Building C object source_subfolder/ogr/ogrsf_frmts/sqlite/CMakeFiles/my_test_sqlite3_ext.dir/my_test_sqlite3_ext.c.o
[  1%] Building CXX object source_subfolder/frmts/pcidsk/sdk/CMakeFiles/pcidsk_sdk.dir/blockdir/asciitiledir.cpp.o
[  1%] Building C object source_subfolder/frmts/pcraster/libcsf/CMakeFiles/csf.dir/_getcell.c.o
...
[100%] Building CXX object source_subfolder/gcore/CMakeFiles/gcore.dir/rasterio_ssse3.cpp.o
[100%] Built target ogr_SQLite
[100%] Built target gcore
[100%] Linking CXX shared library ../lib/libgdal.so
/usr/bin/ld: /home/wouter/.conan/data/json-c/0.16/_/_/package/2a19826344ff00be1c04403f2f8e7008ed3a7cc6/lib/libjson-c.a(random_seed.c.o): in function `json_c_get_random_seed':
random_seed.c:(.text.json_c_get_random_seed+0x5): undefined reference to `arc4random'
collect2: error: ld returned 1 exit status
gmake[2]: *** [source_subfolder/CMakeFiles/GDAL.dir/build.make:2010: lib/libgdal.so.31.0.2] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:2879: source_subfolder/CMakeFiles/GDAL.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
gdal/3.5.2: 
gdal/3.5.2: ERROR: Package '55d9a32157142351b93e62d5556b6d46cb31a528' build failed
gdal/3.5.2: WARN: Build folder /home/wouter/.conan/data/gdal/3.5.2/_/_/build/55d9a32157142351b93e62d5556b6d46cb31a528
ERROR: gdal/3.5.2: Error in build() method, line 721
	cmake.build()
	ConanException: Error 2 while executing cmake --build '/home/wouter/.conan/data/gdal/3.5.2/_/_/build/55d9a32157142351b93e62d5556b6d46cb31a528/build' '--' '-j16'
```

</details>

[package] gdal/3.5.[1-2]: missing 'res' folder in package
### Description

GDAL package used to contain "res/gdal" folder before 3.5.x on conan (I checked 3.4.3, it contains res/gdal/* files),

However, the recent version 3.5.1 3.5.2 missed such a folder, which contains some essential data for gdal running.

### Package and Environment Details

* Package Name/Version: **gdal/3.5.[1-2]**
* Operating System+version: **Linux Ubuntu 20.04 and Window 10**
* Compiler+version: **GCC 9 and MSVC 2019**
* Conan version: **conan 1.55.0**


### Conan profile

[settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=9
    os=Linux


### Steps to reproduce

In Linux Bash:

conan download gdal/3.4.3:68820ae16fe73ad1ec91605b400b2ff83d912328
ls ~/.conan/data/gdal/3.4.3/_/_/package/68820ae16fe73ad1ec91605b400b2ff83d912328/
>> bin  conaninfo.txt  conanmanifest.txt  include  lib  licenses  res

conan download gdal/3.5.1:81e5d5569730d0770df53a5267e71cb78f2ec450
ls ~/.conan/data/gdal/3.5.1/_/_/package/81e5d5569730d0770df53a5267e71cb78f2ec450
>> conaninfo.txt  conanmanifest.txt  include  lib  licenses


### Logs

<details><summary>Click to expand log</summary>

```
Put your log output here
```

</details>



Discussion:

Resolving patch:
diff --git a/recipes/gdal/post_3.5.0/conanfile.py b/recipes/gdal/post_3.5.0/conanfile.py
--- a/recipes/gdal/post_3.5.0/conanfile.py
+++ b/recipes/gdal/post_3.5.0/conanfile.py
@@ -1,43 +1,42 @@
+import os
+
 from conan import ConanFile
-from conan.tools.apple import fix_apple_shared_install_name
-from conan.tools.files import apply_conandata_patches, get, files
 from conan.errors import ConanInvalidConfiguration
-from conans import CMake
-import functools
-import os
+from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout
+from conan.tools.files import apply_conandata_patches, copy, export_conandata_patches, get, rmdir, replace_in_file
+from conan.tools.microsoft import is_msvc
+from conan.tools.scm import Version
+
+required_conan_version = ">=1.52.0"
+
 
 class GdalConan(ConanFile):
     name = "gdal"
     description = "GDAL is an open source X/MIT licensed translator library " \
                   "for raster and vector geospatial data formats."
     license = "MIT"
-    topics = ("osgeo", "geospatial", "raster", "vector")
-    homepage = "https://github.com/OSGeo/gdal"
     url = "https://github.com/conan-io/conan-center-index"
+    homepage = "https://github.com/OSGeo/gdal"
+    topics = ("osgeo", "geospatial", "raster", "vector")
 
+    package_type = "library"
     settings = "os", "arch", "compiler", "build_type"
-
-    generators = "cmake", "cmake_find_package", "cmake_find_package_multi"
-
-    # A list of gdal dependencies can be taken from cmake/helpers/CheckDependentLibraries.cmake
-    # within gdal sources with the command:
-    # grep -E '^[ \t]*gdal_check_package\(' cmake/helpers/CheckDependentLibraries.cmake \
-    #   | sed 's/[ \t]*gdal_check_package(\([a-zA-Z_0-9]\+\) "\(.*\)"\(.*\)/{ 'dep': \'\1\', 'descr': \'\2\' },/' \
-    #   | sort | uniq
-
     options = {
         "shared": [True, False],
         "fPIC": [True, False],
         "tools": [True, False],
         "with_armadillo": [True, False],
         "with_arrow": [True, False],
+        "with_basisu": [True, False],
         "with_blosc": [True, False],
+        "with_brunsli": [True, False],
         "with_cfitsio": [True, False],
         # with_cypto option has been renamed with_openssl in version 3.5.1
-        "with_crypto": [True, False, "deprecated"],
+        "with_crypto": ["deprecated", True, False],
         "with_cryptopp": [True, False],
         "with_curl": [True, False],
         "with_dds": [True, False],
+        "with_ecw": [True, False],
         "with_expat": [True, False],
         "with_exr": [True, False],
         "with_freexl": [True, False],
@@ -47,48 +46,64 @@ class GdalConan(ConanFile):
         "with_hdf4": [True, False],
         "with_hdf5": [True, False],
         "with_heif": [True, False],
+        "with_jpeg": [False, "libjpeg", "libjpeg-turbo"],
+        "with_jxl": [True, False],
         "with_kea": [True, False],
+        "with_lerc": [True, False],
+        "with_libaec": [True, False],
+        "with_libarchive": [True, False],
+        "with_libcsf": [True, False],
         "with_libdeflate": [True, False],
         "with_libiconv": [True, False],
-        "with_jpeg": [None, "libjpeg", "libjpeg-turbo"],
         "with_libkml": [True, False],
-        "with_libtiff": [True, False],
+        "with_libtiff": ["deprecated", True, False], # always enabled
+        "with_lzma": [True, False],
         "with_lz4": [True, False],
         "with_mongocxx": [True, False],
-        "with_mysql": [None, "libmysqlclient", "mariadb-connector-c"],
+        "with_mysql": [False, "libmysqlclient", "mariadb-connector-c"],
         "with_netcdf": [True, False],
         "with_odbc": [True, False],
+        "with_opencad": [True, False],
+        "with_opencl": [True, False],
         "with_openjpeg": [True, False],
         "with_openssl": [True, False],
         "with_pcre": [True, False],
         "with_pcre2": [True, False],
+        # "with_pdfium": [True, False],
         "with_pg": [True, False],
         "with_png": [True, False],
         "with_podofo": [True, False],
         "with_poppler": [True, False],
-        "with_proj": [True, False],
+        "with_proj": ["deprecated", True, False], # always enabled
+        "with_publicdecompwt": [True, False],
         "with_qhull": [True, False],
+        "with_rasterlite2": [True, False],
+        "with_shapelib": [True, False],
+        "with_spatialite": [True, False],
         "with_sqlite3": [True, False],
+        "with_tiledb": [True, False],
         "with_webp": [True, False],
         "with_xerces": [True, False],
         "with_xml2": [True, False],
-        "with_zlib": [True, False],
+        "with_zlib": ["deprecated", True, False], # always enabled
         "with_zstd": [True, False],
     }
-
     default_options = {
         "shared": False,
         "fPIC": True,
         "tools": False,
         "with_armadillo": False,
-        "with_arrow": False,
+        "with_arrow": True,
+        "with_basisu": False,
         "with_blosc": False,
+        "with_brunsli": False,
         "with_cfitsio": False,
         "with_crypto": "deprecated",
         "with_cryptopp": False,
-        "with_curl": False,
+        "with_curl": True,
         "with_dds": False,
-        "with_expat": False,
+        "with_ecw": False,
+        "with_expat": True,
         "with_exr": False,
         "with_freexl": False,
         "with_geos": True,
@@ -97,215 +112,220 @@ class GdalConan(ConanFile):
         "with_hdf4": False,
         "with_hdf5": False,
         "with_heif": False,
+        "with_jpeg": "libjpeg",
+        "with_jxl": False,
         "with_kea": False,
+        "with_lerc": True,
+        "with_libaec": False,
+        "with_libarchive": False,
+        "with_libcsf": True,
         "with_libdeflate": True,
         "with_libiconv": True,
-        "with_jpeg": "libjpeg",
         "with_libkml": False,
-        "with_libtiff": True,
+        "with_libtiff": "deprecated",
+        "with_lzma": False,
         "with_lz4": False,
         "with_mongocxx": False,
-        "with_mysql": None,
+        "with_mysql": False,
         "with_netcdf": False,
         "with_odbc": False,
+        "with_opencad": False,
+        "with_opencl": True,
         "with_openjpeg": False,
         "with_openssl": False,
         "with_pcre": False,
         "with_pcre2": False,
+        # "with_pdfium": False,
         "with_pg": False,
         "with_png": True,
         "with_podofo": False,
         "with_poppler": False,
-        "with_proj": True,
+        "with_proj": "deprecated",
+        "with_publicdecompwt": False,
         "with_qhull": True,
+        "with_rasterlite2": False,
+        "with_shapelib": True,
+        "with_spatialite": False,
         "with_sqlite3": True,
+        "with_tiledb": False,
         "with_webp": False,
         "with_xerces": False,
         "with_xml2": False,
-        "with_zlib": True,
+        "with_zlib": "deprecated",
         "with_zstd": False,
     }
 
-    @property
-    def _source_subfolder(self):
-        return "source_subfolder"
-
-    @property
-    def _build_subfolder(self):
-        return "build"
-
     def export_sources(self):
-        self.copy("CMakeLists.txt")
-        for patch in self.conan_data.get("patches", {}).get(self.version, []):
-            self.copy(patch["patch_file"])
+        copy(self, "CMakeLists.txt", src=self.recipe_folder, dst=self.export_sources_folder)
+        export_conandata_patches(self)
+        copy(self, "*.cmake",
+             src=os.path.join(self.recipe_folder, "cmake"),
+             dst=os.path.join(self.export_sources_folder, "src", "cmake", "helpers"))
 
     def config_options(self):
         if self.settings.os == "Windows":
             del self.options.fPIC
+        if Version(self.version) < "3.7":
+            # Latest versions of Arrow are no longer compatible with GDAL 3.5
+            self.options.with_arrow = False
+        if Version(self.version) < "3.8":
+            del self.options.with_libaec
 
     def configure(self):
-        if self.options.with_crypto != "deprecated":
-            self.output.error("with_crypto option is deprecated, use with_openssl instead.")
-
         if self.options.shared:
-            try:
-                del self.options.fPIC
-            except:
-                pass
+            self.options.rm_safe("fPIC")
+
+    def layout(self):
+        cmake_layout(self, src_folder="src")
 
     def requirements(self):
-        self.requires("json-c/0.16")
+        self.requires("json-c/0.17")
         self.requires("libgeotiff/1.7.1")
-
+        self.requires("libtiff/4.6.0")
+        self.requires("proj/9.3.1")
+        # Used in a public header here:
+        # https://github.com/OSGeo/gdal/blob/v3.7.1/port/cpl_minizip_ioapi.h#L26
+        self.requires("zlib/[>=1.2.11 <2]", transitive_headers=True, transitive_libs=True)
         if self.options.with_armadillo:
-            self.requires("armadillo/10.7.3")
-
+            self.requires("armadillo/12.6.4")
         if self.options.with_arrow:
-            self.requires("arrow/8.0.1")
-
+            self.requires("arrow/14.0.2")
+        if self.options.with_basisu:
+            self.requires("libbasisu/1.15.0")
         if self.options.with_blosc:
-            self.requires("c-blosc/1.21.1")
-
+            self.requires("c-blosc/1.21.5")
+        if self.options.with_brunsli:
+            self.requires("brunsli/cci.20231024")
         if self.options.with_cfitsio:
-            self.requires("cfitsio/4.1.0")
-
+            self.requires("cfitsio/4.3.1")
         if self.options.with_cryptopp:
-            self.requires("cryptopp/8.7.0")
-
+            self.requires("cryptopp/8.9.0")
         if self.options.with_curl:
-            self.requires("libcurl/8.2.0")
-
+            self.requires("libcurl/[>=7.78 <9]")
         if self.options.with_dds:
             self.requires("crunch/cci.20190615")
-
+        if self.options.with_ecw:
+            self.requires("libecwj2/3.3")
         if self.options.with_expat:
             self.requires("expat/2.5.0")
-
         if self.options.with_exr:
-            self.requires("openexr/3.1.9")
+            self.requires("openexr/3.2.1")
             self.requires("imath/3.1.9")
-
         if self.options.with_freexl:
-            self.requires("freexl/1.0.6")
-
+            self.requires("freexl/2.0.0")
         if self.options.with_geos:
-            self.requires("geos/3.11.1")
-
+            self.requires("geos/3.12.0")
         if self.options.with_gif:
             self.requires("giflib/5.2.1")
-
         if self.options.with_gta:
             self.requires("libgta/1.2.1")
-
         if self.options.with_hdf4:
-            self.requires("hdf4/4.2.15")
-
+            self.requires("hdf4/4.2.16-2")
         if self.options.with_hdf5:
-            self.requires("hdf5/1.13.1")
-
+            self.requires("hdf5/1.14.3")
         if self.options.with_heif:
-            self.requires("libheif/1.13.0")
-
+            self.requires("libheif/1.16.2")
         if self.options.with_jpeg == "libjpeg":
             self.requires("libjpeg/9e")
         elif self.options.with_jpeg == "libjpeg-turbo":
-            self.requires("libjpeg-turbo/2.1.5")
-
+            self.requires("libjpeg-turbo/3.0.1")
+        if self.options.with_jxl:
+            self.requires("libjxl/0.6.1")
         if self.options.with_kea:
             self.requires("kealib/1.4.14")
-
+        if self.options.with_lerc:
+            self.requires("lerc/4.0.1")
+        if self.options.get_safe("with_libaec"):
+            self.requires("libaec/1.0.6")
+        if self.options.with_libarchive:
+            self.requires("libarchive/3.7.2")
         if self.options.with_libdeflate:
-            self.requires("libdeflate/1.18")
-
+            self.requires("libdeflate/1.19")
         if self.options.with_libiconv:
             self.requires("libiconv/1.17")
-
         if self.options.with_libkml:
             self.requires("libkml/1.3.0")
-
-        if self.options.with_libtiff:
-            self.requires("libtiff/4.5.1")
-
+        if self.options.with_lzma:
+            self.requires("xz_utils/5.4.5")
         if self.options.with_lz4:
             self.requires("lz4/1.9.4")
-
         if self.options.with_mongocxx:
-            self.requires("mongo-cxx-driver/3.6.7")
-
+            self.requires("mongo-cxx-driver/3.8.1")
         if self.options.with_mysql == "libmysqlclient":
-            self.requires("libmysqlclient/8.0.30")
+            self.requires("libmysqlclient/8.1.0")
         elif self.options.with_mysql == "mariadb-connector-c":
-            self.requires("mariadb-connector-c/3.1.12")
-
+            self.requires("mariadb-connector-c/3.3.3")
         if self.options.with_netcdf:
             self.requires("netcdf/4.8.1")
-
         if self.options.with_odbc:
             self.requires("odbc/2.3.11")
-
+        if self.options.with_opencl:
+            self.requires("opencl-icd-loader/2023.12.14")
         if self.options.with_openjpeg:
             self.requires("openjpeg/2.5.0")
-
         if self.options.with_openssl:
-            self.requires("openssl/1.1.1u")
-
+            self.requires("openssl/[>=1.1 <4]")
         if self.options.with_pcre:
             self.requires("pcre/8.45")
-
         if self.options.with_pcre2:
             self.requires("pcre2/10.42")
-
+        # TODO: pdfium recipe needs to be compatible with https://github.com/rouault/pdfium_build_gdal_3_8
+        # if self.options.with_pdfium:
+        #     self.requires("pdfium/95.0.4629")
         if self.options.with_pg:
-            self.requires("libpq/14.5")
-
+            # libpq 15+ is not supported
+            self.requires("libpq/14.9")
         if self.options.with_png:
             self.requires("libpng/1.6.40")
-
         if self.options.with_podofo:
             self.requires("podofo/0.9.7")
-
         if self.options.with_poppler:
             self.requires("poppler/21.07.0")
-
-        if self.options.with_proj:
-            self.requires("proj/9.1.1")
-
         if self.options.with_qhull:
             self.requires("qhull/8.0.1")
-
+        if self.options.with_rasterlite2:
+            self.requires("librasterlite2/1.1.0-beta1")
+        if self.options.with_spatialite:
+            self.requires("libspatialite/5.0.1")
         if self.options.with_sqlite3:
-            self.requires("sqlite3/3.42.0")
-
+            self.requires("sqlite3/3.44.2")
+        if self.options.with_tiledb:
+            self.requires("tiledb/2.17.4")
         if self.options.with_webp:
-            self.requires("libwebp/1.3.1")
-
+            self.requires("libwebp/1.3.2")
         if self.options.with_xerces:
-            self.requires("xerces-c/3.2.3")
-
+            self.requires("xerces-c/3.2.5")
         if self.options.with_xml2:
-            self.requires("libxml2/2.10.3")
-
-        if self.options.with_zlib:
-            self.requires("zlib/1.2.13")
-
+            self.requires("libxml2/2.12.3")
         if self.options.with_zstd:
             self.requires("zstd/1.5.5")
+        # Use of external shapelib is not recommended and is currently broken.
+        # https://github.com/OSGeo/gdal/issues/5711
+        # if self.options.with_shapelib:
+        #     self.requires("shapelib/1.6.0")
 
     def build_requirements(self):
         # https://github.com/conan-io/conan/issues/3482#issuecomment-662284561
         self.tool_requires("cmake/[>=3.18 <4]")
 
     def package_id(self):
+        # Ignore deprecated options
         del self.info.options.with_crypto
+        del self.info.options.with_libtiff
+        del self.info.options.with_proj
+        del self.info.options.with_zlib
 
     def validate(self):
-        if self.options.get_safe("with_pcre") and self.options.get_safe("with_pcre2"):
+        for option in ["crypto", "zlib", "proj", "libtiff"]:
+            if self.options.get_safe(f"with_{option}") != "deprecated":
+                self.output.warning(f"{self.ref}:with_{option} option is deprecated. The {option} dependecy is always enabled now.")
+        if self.options.with_pcre and self.options.with_pcre2:
             raise ConanInvalidConfiguration("Enable either pcre or pcre2, not both")
 
-        if self.options.get_safe("with_sqlite3") and not self.options["sqlite3"].enable_column_metadata:
+        if self.options.with_sqlite3 and not self.dependencies["sqlite3"].options.enable_column_metadata:
             raise ConanInvalidConfiguration("gdql requires sqlite3:enable_column_metadata=True")
 
-        if self.options.get_safe("with_libtiff") and self.options["libtiff"].jpeg != self.options.get_safe("with_jpeg"):
+        if self.dependencies["libtiff"].options.jpeg != self.options.with_jpeg:
             msg = "libtiff:jpeg and gdal:with_jpeg must be set to the same value, either libjpeg or libjpeg-turbo."
             # For some reason, the ConanInvalidConfiguration message is not shown, only
             #     ERROR: At least two recipes provides the same functionality:
@@ -314,591 +334,488 @@ def validate(self):
             self.output.error(msg)
             raise ConanInvalidConfiguration(msg)
 
-        if self.options.get_safe("with_poppler") and self.options["poppler"].with_libjpeg != self.options.get_safe("with_jpeg"):
+        if self.options.with_poppler and self.dependencies["poppler"].options.with_libjpeg != self.options.with_jpeg:
             msg = "poppler:with_libjpeg and gdal:with_jpeg must be set to the same value, either libjpeg or libjpeg-turbo."
             self.output.error(msg)
             raise ConanInvalidConfiguration(msg)
 
     def source(self):
-        get(self, **self.conan_data["sources"][self.version],
-                destination=self._source_subfolder, strip_root=True)
-
-    @functools.lru_cache(1)
-    def _configure_cmake(self):
-        cmake = CMake(self)
-
-        if self.options.get_safe("fPIC", True):
-            cmake.definitions[
-                "GDAL_OBJECT_LIBRARIES_POSITION_INDEPENDENT_CODE"] = True
-
-        cmake.definitions["BUILD_JAVA_BINDINGS"] = False
-        cmake.definitions["BUILD_CSHARP_BINDINGS"] = False
-        cmake.definitions["BUILD_PYTHON_BINDINGS"] = False
-
-        cmake.definitions["BUILD_TESTING"] = False
-        cmake.definitions["GDAL_USE_ZLIB_INTERNAL"] = False
-        cmake.definitions["GDAL_USE_JSONC_INTERNAL"] = False
-        cmake.definitions["GDAL_USE_JPEG_INTERNAL"] = False
-        cmake.definitions["GDAL_USE_JPEG12_INTERNAL"] = False
-        cmake.definitions["GDAL_USE_TIFF_INTERNAL"] = False
-        cmake.definitions["GDAL_USE_GEOTIFF_INTERNAL"] = False
-        cmake.definitions["GDAL_USE_GIF_INTERNAL"] = False
-        cmake.definitions["GDAL_USE_PNG_INTERNAL"] = False
-
-        cmake.definitions["GDAL_USE_LERC_INTERNAL"] = True
-        cmake.definitions["GDAL_USE_SHAPELIB_INTERNAL"] = True
-
-        cmake.definitions["BUILD_APPS"] = self.options.tools
-
-        cmake.definitions["SQLite3_HAS_COLUMN_METADATA"] = \
-            self.options["sqlite3"].enable_column_metadata
-
-        cmake.definitions["SQLite3_HAS_RTREE"] = self.options[
-            "sqlite3"].enable_rtree
-
-        cmake.definitions["GDAL_USE_JSONC"] = True
-        cmake.definitions["GDAL_CONAN_PACKAGE_FOR_JSONC"] = "json-c"
-
-        cmake.definitions["GDAL_USE_GEOTIFF"] = True
-        cmake.definitions["GDAL_CONAN_PACKAGE_FOR_GEOTIFF"] = "libgeotiff"
-        cmake.definitions["TARGET_FOR_GEOTIFF"] = "GeoTIFF::GeoTIFF"
-
-        cmake.definitions["GDAL_USE_ARMADILLO"] = self.options.with_armadillo
-        if self.options.with_armadillo:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_ARMADILLO"] = "armadillo"
-            cmake.definitions["TARGET_FOR_ARMADILLO"] = \
-                    self.dependencies["armadillo"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["Armadillo_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_ARROW"] = self.options.with_arrow
-        if self.options.with_arrow:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_ARROW"] = "arrow"
-            cmake.definitions["TARGET_FOR_ARROW"] = \
-                    self.dependencies["arrow"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["Arrow_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_BLOSC"] = self.options.with_blosc
-        if self.options.with_blosc:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_BLOSC"] = "c-blosc"
-            cmake.definitions["TARGET_FOR_BLOSC"] = \
-                    self.dependencies["c-blosc"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["Blosc_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_CFITSIO"] = self.options.with_cfitsio
-        if self.options.with_cfitsio:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_CFITSIO"] = "cfitsio"
-            cmake.definitions["TARGET_FOR_CFITSIO"] = \
-                    self.dependencies["cfitsio"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["CFITSIO_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_CRYPTOPP"] = self.options.with_cryptopp
-        if self.options.with_cryptopp:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_CRYPTOPP"] = "cryptopp"
-            cmake.definitions["TARGET_FOR_CRYPTOPP"] = \
-                    self.dependencies["cryptopp"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["CryptoPP_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_CURL"] = self.options.with_curl
-        if self.options.with_curl:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_CURL"] = "libcurl"
-            cmake.definitions["TARGET_FOR_CURL"] = \
-                    self.dependencies["libcurl"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["CURL_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_CRNLIB"] = self.options.with_dds
-        if self.options.with_dds:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_CRNLIB"] = "crunch"
-            cmake.definitions["TARGET_FOR_CRNLIB"] = \
-                    self.dependencies["crunch"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["Crnlib_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_EXPAT"] = self.options.with_expat
-        if self.options.with_expat:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_EXPAT"] = "expat"
-            cmake.definitions["TARGET_FOR_EXPAT"] = "EXPAT::EXPAT"
-        else:
-            cmake.definitions["EXPAT_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_OPENEXR"] = self.options.with_exr
-        if self.options.with_exr:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_OPENEXR"] = "openexr"
-            cmake.definitions["TARGET_FOR_OPENEXR"] = \
-                    self.dependencies["openexr"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["OpenEXR_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_FREEXL"] = self.options.with_freexl
-        if self.options.with_freexl:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_FREEXL"] = "freexl"
-            cmake.definitions["TARGET_FOR_FREEXL"] = "freexl::freexl"
-        else:
-            cmake.definitions["FreeXL_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_GEOS"] = self.options.with_geos
-        if self.options.with_geos:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_GEOS"] = "geos"
-            cmake.definitions["TARGET_FOR_GEOS"] = \
-                    self.dependencies["geos"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["GEOS_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_GIF"] = self.options.with_gif
-        if self.options.with_gif:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_GIF"] = "giflib"
-            cmake.definitions["TARGET_FOR_GIF"] = \
-                    self.dependencies["giflib"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["GIF_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_GTA"] = self.options.with_gta
-        if self.options.with_gta:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_GTA"] = "libgta"
-            cmake.definitions["TARGET_FOR_GTA"] = \
-                    self.dependencies["libgta"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["GTA_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_HDF4"] = self.options.with_hdf4
-        if self.options.with_hdf4:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_HDF4"] = "hdf4"
-            cmake.definitions["TARGET_FOR_HDF4"] = \
-                    self.dependencies["hdf4"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["HDF4_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_HDF5"] = self.options.with_hdf5
-        if self.options.with_hdf5:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_HDF5"] = "hdf5"
-            cmake.definitions["TARGET_FOR_HDF5"] = \
-                    self.dependencies["hdf5"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["HDF5_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_HEIF"] = self.options.with_heif
-        if self.options.with_heif:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_HEIF"] = "libheif"
-            cmake.definitions["TARGET_FOR_HEIF"] = \
-                    self.dependencies["libheif"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["HEIF_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_KEA"] = self.options.with_kea
-        if self.options.with_kea:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_KEA"] = "kealib"
-            cmake.definitions["TARGET_FOR_KEA"] = \
-                    self.dependencies["kealib"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["KEA_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_DEFLATE"] = self.options.with_libdeflate
-        if self.options.with_libdeflate:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_DEFLATE"] = "libdeflate"
-            cmake.definitions["TARGET_FOR_DEFLATE"] = \
-                    self.dependencies["libdeflate"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["Deflate_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_ICONV"] = self.options.with_libiconv
-        if self.options.with_libiconv:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_ICONV"] = "libiconv"
-            cmake.definitions["TARGET_FOR_ICONV"] = \
-                    self.dependencies["libiconv"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["Iconv_FOUND"] = False
-
-        if self.options.with_jpeg == "libjpeg" or self.options.with_jpeg == "libjpeg-turbo":
-            print(f'self.options.with_jpeg: {self.options.with_jpeg}')
-            cmake.definitions["GDAL_USE_JPEG"] = True
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_JPEG"] = self.options.with_jpeg
-            cmake.definitions["TARGET_FOR_JPEG"] = (
-                    "JPEG::JPEG" if self.options.with_jpeg == "libjpeg" else
-                    self.dependencies["libjpeg-turbo"].cpp_info.components["turbojpeg"] \
-                            .get_property("cmake_target_name"))
-        else:
-            cmake.definitions["JPEG_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_LIBKML"] = self.options.with_libkml
-        if self.options.with_libkml:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_LIBKML"] = "libkml"
-            cmake.definitions["TARGET_FOR_LIBKML"] = \
-                    self.dependencies["libkml"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["LibKML_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_TIFF"] = self.options.with_libtiff
-        if self.options.with_libtiff:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_TIFF"] = "libtiff"
-            cmake.definitions["TARGET_FOR_TIFF"] = \
-                    self.dependencies["libtiff"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["TIFF_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_LZ4"] = self.options.with_lz4
-        if self.options.with_lz4:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_LZ4"] = "lz4"
-            cmake.definitions["TARGET_FOR_LZ4"] = \
-                    self.dependencies["lz4"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["LZ4_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_MONGOCXX"] = self.options.with_mongocxx
-        if self.options.with_mongocxx:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_MONGOCXX"] = "mongo-cxx-driver"
-            cmake.definitions["TARGET_FOR_MONGOCXX"] = \
-                    self.dependencies["mongo-cxx-driver"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["MONGOCXX_FOUND"] = False
-
-        if self.options.with_mysql == "libmysqlclient" or self.options.with_mysql == "mariadb-connector-c":
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_MYSQL"] = str(self.options.with_mysql)
-            cmake.definitions["TARGET_FOR_MYSQL"] = \
-                    "mariadb-connector-c::mariadb-connector-c" \
-                    if self.options.with_mysql == "mariadb-connector-c" \
-                    else "libmysqlclient::libmysqlclient"
-        else:
-            cmake.definitions["MYSQL_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_NETCDF"] = self.options.with_netcdf
-        if self.options.with_netcdf:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_NETCDF"] = "netcdf"
-            cmake.definitions["TARGET_FOR_NETCDF"] = \
-                    self.dependencies["netcdf"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["NetCDF_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_ODBC"] = self.options.with_odbc
-        if self.options.with_odbc:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_ODBC"] = "odbc"
-            cmake.definitions["TARGET_FOR_ODBC"] = \
-                    self.dependencies["odbc"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["ODBC_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_OPENJPEG"] = self.options.with_openjpeg
-        if self.options.with_openjpeg:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_OPENJPEG"] = "openjpeg"
-            cmake.definitions["TARGET_FOR_OPENJPEG"] = \
-                    self.dependencies["openjpeg"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["OPENJPEG_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_OPENSSL"] = self.options.with_openssl
-        if self.options.with_openssl:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_OPENSSL"] = "openssl"
-            cmake.definitions["TARGET_FOR_OPENSSL"] = \
-                    self.dependencies["openssl"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["OpenSSL_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_PCRE"] = self.options.with_pcre
-        if self.options.with_pcre:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_PCRE"] = "pcre"
-            cmake.definitions["TARGET_FOR_PCRE"] = \
-                    self.dependencies["pcre"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["PCRE_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_PCRE2"] = self.options.with_pcre2
-        if self.options.with_pcre2:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_PCRE2"] = "pcre2"
-            cmake.definitions["TARGET_FOR_PCRE2"] = \
-                    self.dependencies["pcre2"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["PCRE2_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_PDFIUM"] = False
-        cmake.definitions["PDFIUM_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_POSTGRESQL"] = self.options.with_pg
-        if self.options.with_pg:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_POSTGRESQL"] = "libpq"
-            cmake.definitions["TARGET_FOR_POSTGRESQL"] = \
-                    self.dependencies["libpq"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["PostgreSQL_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_PNG"] = self.options.with_png
-        if self.options.with_png:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_PNG"] = "libpng"
-            cmake.definitions["TARGET_FOR_PNG"] = \
-                    self.dependencies["libpng"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["PNG_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_PODOFO"] = self.options.with_podofo
-        if self.options.with_podofo:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_PODOFO"] = "podofo"
-            cmake.definitions["TARGET_FOR_PODOFO"] = \
-                    self.dependencies["podofo"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["Podofo_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_POPPLER"] = self.options.with_poppler
-        if self.options.with_poppler:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_POPPLER"] = "poppler"
-            cmake.definitions["TARGET_FOR_POPPLER"] = \
-                    self.dependencies["poppler"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["Poppler_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_PROJ"] = self.options.with_proj
-        if self.options.with_proj:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_PROJ"] = "proj"
-            cmake.definitions["TARGET_FOR_PROJ"] = \
-                    self.dependencies["proj"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["PROJ_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_QHULL"] = self.options.with_qhull
-        if self.options.with_qhull:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_QHULL"] = "qhull"
-            cmake.definitions["TARGET_FOR_QHULL"] = \
-                    self.dependencies["qhull"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["QHULL_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_SQLITE3"] = self.options.with_sqlite3
+        get(self, **self.conan_data["sources"][self.version], strip_root=True)
+
+    def generate(self):
+        tc = CMakeToolchain(self)
+        tc.variables["GDAL_OBJECT_LIBRARIES_POSITION_INDEPENDENT_CODE"] = self.options.get_safe("fPIC", True)
+        tc.variables["GDAL_SET_INSTALL_RELATIVE_RPATH"] = True
+
+        tc.variables["BUILD_JAVA_BINDINGS"] = False
+        tc.variables["BUILD_CSHARP_BINDINGS"] = False
+        tc.variables["BUILD_PYTHON_BINDINGS"] = False
+        tc.variables["BUILD_APPS"] = self.options.tools
+        tc.variables["BUILD_TESTING"] = False
+
+        tc.variables["GDAL_USE_ARCHIVE"] = self.options.with_libarchive
+        tc.variables["GDAL_USE_ARMADILLO"] = self.options.with_armadillo
+        tc.variables["GDAL_USE_ARROW"] = self.options.with_arrow
+        tc.variables["GDAL_USE_ARROWDATASET"] = self.options.with_arrow and self.dependencies["arrow"].options.dataset_modules
+        tc.variables["GDAL_USE_BASISU"] = self.options.with_basisu
+        tc.variables["GDAL_USE_BLOSC"] = self.options.with_blosc
+        tc.variables["GDAL_USE_BRUNSLI"] = self.options.with_brunsli
+        tc.variables["GDAL_USE_CFITSIO"] = self.options.with_cfitsio
+        tc.variables["GDAL_USE_CRNLIB"] = self.options.with_dds
+        tc.variables["GDAL_USE_CRYPTOPP"] = self.options.with_cryptopp
+        tc.variables["GDAL_USE_CURL"] = self.options.with_curl
+        tc.variables["GDAL_USE_DEFLATE"] = self.options.with_libdeflate
+        tc.variables["GDAL_USE_ECW"] = self.options.with_ecw
+        tc.variables["GDAL_USE_EXPAT"] = self.options.with_expat
+        tc.variables["GDAL_USE_FILEGDB"] = False
+        tc.variables["GDAL_USE_FREEXL"] = self.options.with_freexl
+        tc.variables["GDAL_USE_FYBA"] = False
+        tc.variables["GDAL_USE_GEOS"] = self.options.with_geos
+        tc.variables["GDAL_USE_GEOTIFF"] = True
+        tc.variables["GDAL_USE_GEOTIFF_INTERNAL"] = False
+        tc.variables["GDAL_USE_GIF"] = self.options.with_gif
+        tc.variables["GDAL_USE_GIF_INTERNAL"] = False
+        tc.variables["GDAL_USE_GTA"] = self.options.with_gta
+        tc.variables["GDAL_USE_HDF4"] = self.options.with_hdf4
+        tc.variables["GDAL_USE_HDF5"] = self.options.with_hdf5
+        tc.variables["GDAL_USE_HDFS"] = False
+        tc.variables["GDAL_USE_HEIF"] = self.options.with_heif
+        tc.variables["GDAL_USE_ICONV"] = self.options.with_libiconv
+        tc.variables["GDAL_USE_IDB"] = False
+        tc.variables["GDAL_USE_JPEG"] = bool(self.options.with_jpeg)
+        tc.variables["GDAL_USE_JPEG_INTERNAL"] = False
+        tc.variables["GDAL_USE_JPEG12_INTERNAL"] = False
+        tc.variables["GDAL_USE_JSONC"] = True
+        tc.variables["GDAL_USE_JSONC_INTERNAL"] = False
+        tc.variables["GDAL_USE_JXL"] = self.options.with_jxl
+        tc.variables["GDAL_USE_JXL_THREADS"] = self.options.with_jxl
+        tc.variables["GDAL_USE_KDU"] = False
+        tc.variables["GDAL_USE_KEA"] = self.options.with_kea
+        tc.variables["GDAL_USE_LERC"] = self.options.with_lerc
+        tc.variables["GDAL_USE_LERC_INTERNAL"] = False
+        tc.variables["GDAL_USE_LIBAEC"] = self.options.get_safe("with_libaec", False)
+        tc.variables["GDAL_USE_LIBCSF"] = False
+        tc.variables["GDAL_USE_LIBCSF_INTERNAL"] = self.options.with_libcsf
+        tc.variables["GDAL_USE_LIBKML"] = self.options.with_libkml
+        tc.variables["GDAL_USE_LIBLZMA"] = self.options.with_lzma
+        tc.variables["GDAL_USE_LIBQB3"] = False
+        tc.variables["GDAL_USE_LIBXML2"] = self.options.with_xml2
+        tc.variables["GDAL_USE_LURATECH"] = False
+        tc.variables["GDAL_USE_LZ4"] = self.options.with_lz4
+        tc.variables["GDAL_USE_MONGOCXX"] = self.options.with_mongocxx
+        tc.variables["GDAL_USE_MRSID"] = False
+        tc.variables["GDAL_USE_MSSQL_NCLI"] = False
+        tc.variables["GDAL_USE_MSSQL_ODBC"] = False
+        tc.variables["GDAL_USE_MYSQL"] = bool(self.options.with_mysql)
+        tc.variables["GDAL_USE_NETCDF"] = self.options.with_netcdf
+        tc.variables["GDAL_USE_ODBC"] = self.options.with_odbc
+        tc.variables["GDAL_USE_ODBCCPP"] = False
+        tc.variables["GDAL_USE_OGDI"] = False
+        tc.variables["GDAL_USE_OPENCAD"] = False
+        tc.variables["GDAL_USE_OPENCAD_INTERNAL"] = self.options.with_opencad
+        tc.variables["GDAL_USE_OPENCL"] = self.options.with_opencl
+        tc.variables["GDAL_USE_OPENEXR"] = self.options.with_exr
+        tc.variables["GDAL_USE_OPENJPEG"] = self.options.with_openjpeg
+        tc.variables["GDAL_USE_OPENSSL"] = self.options.with_openssl
+        tc.variables["GDAL_USE_ORACLE"] = False
+        tc.variables["GDAL_USE_PARQUET"] = self.options.with_arrow and self.dependencies["arrow"].options.parquet
+        tc.variables["GDAL_USE_PCRE"] = self.options.with_pcre
+        tc.variables["GDAL_USE_PCRE2"] = self.options.with_pcre2
+        tc.variables["GDAL_USE_PDFIUM"] = False  # self.options.with_pdfium
+        tc.variables["GDAL_USE_PNG"] = self.options.with_png
+        tc.variables["GDAL_USE_PNG_INTERNAL"] = False
+        tc.variables["GDAL_USE_PODOFO"] = self.options.with_podofo
+        tc.variables["GDAL_USE_POPPLER"] = self.options.with_poppler
+        tc.variables["GDAL_USE_POSTGRESQL"] = self.options.with_pg
+        tc.variables["GDAL_USE_PUBLICDECOMPWT"] = self.options.with_publicdecompwt
+        tc.variables["GDAL_USE_QHULL"] = self.options.with_qhull
+        tc.variables["GDAL_USE_QHULL_INTERNAL"] = False
+        tc.variables["GDAL_USE_RASTERLITE2"] = self.options.with_rasterlite2
+        tc.variables["GDAL_USE_SFCGAL"] = False
+        tc.variables["GDAL_USE_SHAPELIB"] = False
+        tc.variables["GDAL_USE_SHAPELIB_INTERNAL"] = self.options.with_shapelib
+        tc.variables["GDAL_USE_SPATIALITE"] = self.options.with_spatialite
+        tc.variables["GDAL_USE_SQLITE3"] = self.options.with_sqlite3
+        tc.variables["GDAL_USE_TEIGHA"] = False
+        tc.variables["GDAL_USE_TIFF_INTERNAL"] = False
+        tc.variables["GDAL_USE_TILEDB"] = self.options.with_tiledb
+        tc.variables["GDAL_USE_WEBP"] = self.options.with_webp
+        tc.variables["GDAL_USE_XERCESC"] = self.options.with_xerces
+        tc.variables["GDAL_USE_ZLIB"] = True
+        tc.variables["GDAL_USE_ZLIB_INTERNAL"] = False
+        tc.variables["GDAL_USE_ZSTD"] = self.options.with_zstd
+
+        tc.variables["Parquet_FOUND"] = self.options.with_arrow and self.dependencies["arrow"].options.parquet
+        tc.variables["ArrowDataset_FOUND"] = self.options.with_arrow and self.dependencies["arrow"].options.dataset_modules
+
+        # General workaround for try_compile() tests in the project
+        # https://github.com/conan-io/conan/issues/12180
+        tc.variables["CMAKE_TRY_COMPILE_CONFIGURATION"] = self.settings.build_type
+        # https://github.com/OSGeo/gdal/blob/v3.8.1/cmake/modules/packages/FindSQLite3.cmake
         if self.options.with_sqlite3:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_SQLITE3"] = "sqlite3"
-            cmake.definitions["TARGET_FOR_SQLITE3"] = \
-                    self.dependencies["sqlite3"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["SQLite3_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_WEBP"] = self.options.with_webp
-        if self.options.with_webp:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_WEBP"] = "libwebp"
-            cmake.definitions["TARGET_FOR_WEBP"] = \
-                    self.dependencies["libwebp"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["WebP_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_XERCESC"] = self.options.with_xerces
-        if self.options.with_xerces:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_XERCESC"] = "xerces-c"
-            cmake.definitions["TARGET_FOR_XERCESC"] = \
-                    self.dependencies["xerces-c"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["XercesC_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_LIBXML2"] = self.options.with_xml2
-        if self.options.with_xml2:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_LIBXML2"] = "libxml2"
-            cmake.definitions["TARGET_FOR_LIBXML2"] = \
-                    self.dependencies["libxml2"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["LibXml2_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_ZLIB"] = self.options.with_zlib
-        if self.options.with_zlib:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_ZLIB"] = "zlib"
-            cmake.definitions["TARGET_FOR_ZLIB"] = \
-                    self.dependencies["zlib"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["ZLIB_FOUND"] = False
-
-        cmake.definitions["GDAL_USE_ZSTD"] = self.options.with_zstd
-        if self.options.with_zstd:
-            cmake.definitions["GDAL_CONAN_PACKAGE_FOR_ZSTD"] = "zstd"
-            cmake.definitions["TARGET_FOR_ZSTD"] = \
-                    self.dependencies["zstd"].cpp_info.get_property("cmake_target_name")
-        else:
-            cmake.definitions["ZSTD_FOUND"] = False
-
-
-        for k, v in cmake.definitions.items():
-            print(k, " = ", v)
-
-        cmake.configure(build_folder=self._build_subfolder)
-        return cmake
-
-    def build(self):
+            tc.variables["SQLite3_HAS_COLUMN_METADATA"] = self.dependencies["sqlite3"].options.enable_column_metadata
+            tc.variables["SQLite3_HAS_RTREE"] = self.dependencies["sqlite3"].options.enable_rtree
+            tc.variables["SQLite3_HAS_LOAD_EXTENSION"] = not self.dependencies["sqlite3"].options.omit_load_extension
+            tc.variables["SQLite3_HAS_PROGRESS_HANDLER"] = True
+            tc.variables["SQLite3_HAS_MUTEX_ALLOC"] = True
+            tc.preprocessor_definitions["SQLite3_HAS_COLUMN_METADATA"] = 1 if self.dependencies["sqlite3"].options.enable_column_metadata else 0
+            tc.preprocessor_definitions["SQLite3_HAS_RTREE"] = 1 if self.dependencies["sqlite3"].options.enable_rtree else 0
+        # https://github.com/OSGeo/gdal/blob/v3.8.0/cmake/helpers/CheckDependentLibraries.cmake#L419-L450
+        tc.variables["HAVE_JPEGTURBO_DUAL_MODE_8_12"] = (
+                self.options.with_jpeg == "libjpeg-turbo" and
+                bool(self.dependencies["libjpeg-turbo"].options.get_safe("enable12bit"))
+        )
+        # https://github.com/OSGeo/gdal/blob/v3.8.0/port/CMakeLists.txt
+        tc.variables["BLOSC_HAS_BLOSC_CBUFFER_VALIDATE"] = (
+                self.options.with_blosc and
+                Version(self.dependencies["c-blosc"].ref.version) >= "1.21.5"
+        )
+        # https://github.com/OSGeo/gdal/blob/v3.8.0/frmts/hdf5/CMakeLists.txt#L61-L64
+        tc.variables["GDAL_ENABLE_HDF5_GLOBAL_LOCK"] = (
+                self.options.with_hdf5 and
+                bool(self.dependencies["hdf5"].options.get_safe("threadsafe"))
+        )
+        # https://github.com/OSGeo/gdal/blob/v3.8.0/frmts/hdf4/CMakeLists.txt#L28-L46
+        tc.variables["HDF4_HAS_MAXOPENFILES"] = (
+                self.options.with_hdf4 and
+                Version(self.dependencies["hdf4"].ref.version) >= "4.2.5"
+        )
+        # https://github.com/OSGeo/gdal/blob/4bb78aab3ae9ab5433042bc27239d1555cbe272e/cmake/helpers/CheckDependentLibraries.cmake#L301-L318
+        # The detection fails for some reason
+        # Setting it to non-const is compatible with all platforms
+        tc.variables["_ICONV_SECOND_ARGUMENT_IS_NOT_CONST"] = True
+        tc.generate()
+
+
+        deps = CMakeDeps(self)
+        # https://gdal.org/development/building_from_source.html#cmake-package-dependent-options
+        # Based on `grep -hPIR '(gdal_check_package|find_package2)\(' ~/.conan2/p/b/gdal*/b/src/cmake | sort -u`
+        conan_to_cmake_pkg_name = {
+            "armadillo": "Armadillo",
+            "arrow": "Arrow",
+            "brunsli": "BRUNSLI",
+            "c-blosc": "Blosc",
+            "cfitsio": "CFITSIO",
+            "crunch": "Crnlib",
+            "cryptopp": "CryptoPP",
+            "expat": "EXPAT",
+            "freexl": "FreeXL",
+            # "fyba": "FYBA",
+            "geos": "GEOS",
+            "giflib": "GIF",
+            "hdf4": "HDF4",
+            "hdf5": "HDF5",
+            # "hdfs": "HDFS",
+            "json-c": "JSONC",
+            "kealib": "KEA",
+            "lerc": "LERC",
+            "libaec": "LIBAEC",
+            "libarchive": "ARCHIVE",
+            "libbasisu": "basisu",
+            # "libcsf": "LIBCSF",
+            "libcurl": "CURL",
+            "libdeflate": "Deflate",
+            "libecwj2": "ECW",
+            "libgeotiff": "GeoTIFF",
+            "libgta": "GTA",
+            "libheif": "HEIF",
+            "libiconv": "Iconv",
+            "libjpeg": "JPEG",
+            "libjpeg-turbo": "JPEG",
+            "libjxl": "JXL",
+            "libkml": "LibKML",
+            "libmysqlclient": "MySQL",
+            "libpng": "PNG",
+            "libpq": "PostgreSQL",
+            # "libqb3": "libQB3",
+            "librasterlite2": "RASTERLITE2",
+            "libspatialite": "SPATIALITE",
+            "libtiff": "TIFF",
+            "libwebp": "WebP",
+            "libxml2": "LibXml2",
+            "lz4": "LZ4",
+            "mariadb-connector-c": "MySQL",
+            "mongo-cxx-driver": "MONGOCXX",
+            "netcdf": "NetCDF",
+            "odbc": "ODBC",
+            # "odbccpp": "ODBCCPP",
+            # "ogdi": "OGDI",
+            # "opencad": "OpenCAD",
+            "opencl-icd-loader": "OpenCL",
+            "openexr": "OpenEXR",
+            "openjpeg": "OpenJPEG",
+            "openssl": "OpenSSL",
+            "pcre": "PCRE",
+            "pcre2": "PCRE2",
+            "pdfium": "PDFIUM",
+            "podofo": "Podofo",
+            "poppler": "Poppler",
+            "proj": "PROJ",
+            "qhull": "QHULL",
+            # "sfcgal": "SFCGAL",
+            "shapelib": "Shapelib",
+            "sqlite3": "SQLite3",
+            "tiledb": "TileDB",
+            "xerces-c": "XercesC",
+            "xz_utils": "LibLZMA",
+            "zlib": "ZLIB",
+            "zstd": "ZSTD",
+            # Closed-source/proprietary libraries
+            # "filegdb": "FileGDB",
+            # "idb": "IDB",
+            # "kdu": "KDU",
+            # "luratech": "LURATECH",
+            # "mrsid": "MRSID",
+            # "mssql_ncli": "MSSQL_NCLI",
+            # "mssql_odbc": "MSSQL_ODBC",
+            # "oracle": "Oracle",
+            # "rdb": "rdb",
+            # "teigha": "TEIGHA",
+        }
+        for conan_name, cmake_name in conan_to_cmake_pkg_name.items():
+            deps.set_property(conan_name, "cmake_find_mode", "config")
+            deps.set_property(conan_name, "cmake_file_name", cmake_name)
+
+        renamed_targets = {
+            "arrow::libarrow":            "Arrow::arrow_shared" if Version(self.version) >= "3.7" else "arrow_shared",
+            "arrow::dataset":             "ArrowDataset::arrow_dataset_shared",
+            "arrow::libparquet":          "Parquet::parquet_shared",
+            "brunsli::brunslidec-c":      "BRUNSLI::DECODE",
+            "brunsli::brunslienc-c":      "BRUNSLI::ENCODE",
+            "c-blosc":                    "Blosc::Blosc",
+            "cfitsio":                    "CFITSIO::CFITSIO",
+            "crunch":                     "CRNLIB::Crnlib",
+            "cryptopp":                   "CRYPTOPP::CRYPTOPP",
+            "freexl":                     "FREEXL::freexl",
+            "geos":                       "GEOS::GEOS",
+            "hdf4":                       "HDF4::HDF4",
+            "hdfs":                       "HDFS::HDFS",
+            "kealib":                     "KEA::KEA",
+            "lerc":                       "LERC::LERC",
+            "libaec":                     "LIBAEC::LIBAEC",
+            "libarchive":                 "ARCHIVE::ARCHIVE",
+            "libbasisu":                  "basisu::basisu_lib",
+            "libdeflate":                 "Deflate::Deflate",
+            "libecwj2":                   "ECW::ECW_ALL",
+            "libgeotiff":                 "GEOTIFF::GEOTIFF",
+            "libheif":                    "HEIF::HEIF",
+            "libjxl::jxl":                "JXL::JXL",
+            "libjxl::jxl_threads":        "JXL_THREADS::JXL_THREADS",
+            "libjpeg":                    "JPEG::JPEG",
+            "libjpeg-turbo::jpeg":        "JPEG::JPEG",
+            "libkml::kmldom":             "LIBKML::DOM",
+            "libkml::kmlengine":          "LIBKML::ENGINE",
+            "libkml":                     "LIBKML::LibKML",
+            "librasterlite2":             "RASTERLITE2::RASTERLITE2",
+            "libspatialite":              "SPATIALITE::SPATIALITE",
+            "libwebp":                    "WEBP::WebP",
+            "lz4":                        "LZ4::LZ4",
+            "mongo-cxx-driver::bsoncxx":  "MONGOCXX::BSONCXX",
+            "mongo-cxx-driver::mongocxx": "MONGOCXX::MONGOCXX",
+            "netcds":                     "netCDF::netcdf",
+            "opencl-icd-loader":          "OpenCL::OpenCL",
+            "openjpeg":                   "OPENJPEG::OpenJPEG",
+            "pcre":                       "PCRE::PCRE",
+            "pcre2::pcre2-8":             "PCRE2::PCRE2-8",
+            "pdfium":                     "PDFIUM::PDFIUM",
+            "podofo":                     "PODOFO::Podofo",
+            "poppler":                    "Poppler::Poppler",
+            "shapelib":                   "SHAPELIB::shp",
+            "tiledb":                     "TileDB::tiledb_shared",
+            "xz_utils":                   "LibLZMA::LibLZMA",
+            "zstd":                       "ZSTD::zstd",
+        }
+        for component, new_target_name in renamed_targets.items():
+            deps.set_property(component, "cmake_target_name", new_target_name)
+
+        deps.generate()
+
+    def _patch_sources(self):
         apply_conandata_patches(self)
-        cmake = self._configure_cmake()
+        # Fix Deflate::Deflate not being correctly propagated internally.
+        replace_in_file(self, os.path.join(self.source_folder, "port", "CMakeLists.txt"),
+                        "PRIVATE Deflate::Deflate",
+                        "PUBLIC Deflate::Deflate")
+        # Workaround for JXL_THREADS being provided by the JXL package on CCI.
+        replace_in_file(self, os.path.join(self.source_folder, "cmake", "helpers", "CheckDependentLibraries.cmake"),
+                        "JXL_THREADS", "JXL", strict=False)
+        # Workaround for Parquet and ArrowDataset being provided by Arrow on CCI.
+        replace_in_file(self, os.path.join(self.source_folder, "cmake", "helpers", "CheckDependentLibraries.cmake"),
+                        "gdal_check_package(Parquet", "# gdal_check_package(Parquet")
+        if Version(self.version) >= "3.6.0":
+            replace_in_file(self, os.path.join(self.source_folder, "cmake", "helpers", "CheckDependentLibraries.cmake"),
+                            "gdal_check_package(ArrowDataset", "# gdal_check_package(ArrowDataset")
 
+    def build(self):
+        self._patch_sources()
+        cmake = CMake(self)
+        cmake.configure(build_script_folder=self.source_path.parent)
         cmake.build()
 
     def package(self):
-        self.copy("LICENSE.TXT", dst="licenses", src=self._source_subfolder)
-        cmake = self._configure_cmake()
+        copy(self, "LICENSE.TXT", self.source_folder, os.path.join(self.package_folder, "licenses"))
+        cmake = CMake(self)
         cmake.install()
-        files.rmdir(self, os.path.join(self.package_folder, "share"))
-        files.rmdir(self, os.path.join(self.package_folder, "lib", "pkgconfig"))
-        files.rmdir(self, os.path.join(self.package_folder, "lib", "cmake"))
-        fix_apple_shared_install_name(self)
+        rmdir(self, os.path.join(self.package_folder, "lib", "pkgconfig"))
+        rmdir(self, os.path.join(self.package_folder, "lib", "cmake"))
+        os.rename(os.path.join(self.package_folder, "share"),
+                  os.path.join(self.package_folder, "res"))
+        rmdir(self, os.path.join(self.package_folder, "res", "bash-completion"))
+        rmdir(self, os.path.join(self.package_folder, "res", "man"))
 
     def package_info(self):
-
         self.cpp_info.set_property("cmake_file_name", "GDAL")
         self.cpp_info.set_property("cmake_target_name", "GDAL::GDAL")
         self.cpp_info.set_property("cmake_find_mode", "both")
         self.cpp_info.set_property("pkg_config_name", "gdal")
 
-        self.cpp_info.names["cmake_find_package"] = "GDAL"
-        self.cpp_info.names["cmake_find_package_multi"] = "GDAL"
-        self.cpp_info.filenames["cmake_find_package"] = "GDAL"
-        self.cpp_info.filenames["cmake_find_package_multi"] = "GDAL"
-
+        # https://github.com/OSGeo/gdal/blob/v3.7.2/gdal.cmake#L384-L392
+        # FIXME: set the correct postfix for MinGW shared builds
         libname = "gdal"
-        if self.settings.os == "Windows":
+        if is_msvc(self):
             if self.settings.build_type == "Debug":
                 libname += "d"
-        self.cpp_info.libs = [ libname ]
-
-        self.cpp_info.requires.extend(['json-c::json-c'])
-        self.cpp_info.requires.extend(['libgeotiff::libgeotiff'])
-
+        self.cpp_info.libs = [libname]
+        self.cpp_info.resdirs = ["res"]
+
+        self.cpp_info.requires.extend(["json-c::json-c"])
+        self.cpp_info.requires.extend(["libgeotiff::libgeotiff"])
+        self.cpp_info.requires.extend(["libtiff::libtiff"])
+        self.cpp_info.requires.extend(["proj::projlib"])
+        self.cpp_info.requires.extend(["zlib::zlib"])
         if self.options.with_armadillo:
-            self.cpp_info.requires.extend(['armadillo::armadillo'])
-
+            self.cpp_info.requires.extend(["armadillo::armadillo"])
         if self.options.with_arrow:
-            self.cpp_info.requires.extend(['arrow::libarrow'])
-
+            self.cpp_info.requires.extend(["arrow::libarrow"])
+            if self.dependencies["arrow"].options.parquet:
+                self.cpp_info.requires.extend(["arrow::libparquet"])
+            if self.dependencies["arrow"].options.dataset_modules:
+                self.cpp_info.requires.extend(["arrow::dataset"])
+        if self.options.with_basisu:
+            self.cpp_info.requires.extend(["libbasisu::libbasisu"])
+        if self.options.with_brunsli:
+            self.cpp_info.requires.extend(["brunsli::brunsli"])
         if self.options.with_blosc:
-            self.cpp_info.requires.extend(['c-blosc::c-blosc'])
-
+            self.cpp_info.requires.extend(["c-blosc::c-blosc"])
         if self.options.with_cfitsio:
-            self.cpp_info.requires.extend(['cfitsio::cfitsio'])
-
+            self.cpp_info.requires.extend(["cfitsio::cfitsio"])
         if self.options.with_cryptopp:
-            self.cpp_info.requires.extend(['cryptopp::libcryptopp'])
-
+            self.cpp_info.requires.extend(["cryptopp::libcryptopp"])
         if self.options.with_curl:
-            self.cpp_info.requires.extend(['libcurl::curl'])
-
+            self.cpp_info.requires.extend(["libcurl::curl"])
         if self.options.with_dds:
-            self.cpp_info.requires.extend(['crunch::crunch'])
-
+            self.cpp_info.requires.extend(["crunch::crunch"])
+        if self.options.with_ecw:
+            self.cpp_info.requires.extend(["libecwj2::libecwj2"])
         if self.options.with_expat:
-            self.cpp_info.requires.extend(['expat::expat'])
-
+            self.cpp_info.requires.extend(["expat::expat"])
         if self.options.with_exr:
-            self.cpp_info.requires.extend(['openexr::openexr', 'imath::imath'])
-
+            self.cpp_info.requires.extend(["openexr::openexr", "imath::imath"])
         if self.options.with_freexl:
-            self.cpp_info.requires.extend(['freexl::freexl'])
-
+            self.cpp_info.requires.extend(["freexl::freexl"])
         if self.options.with_geos:
-            self.cpp_info.requires.extend(['geos::geos_c'])
-
+            self.cpp_info.requires.extend(["geos::geos_c"])
         if self.options.with_gif:
-            self.cpp_info.requires.extend(['giflib::giflib'])
-
+            self.cpp_info.requires.extend(["giflib::giflib"])
         if self.options.with_gta:
-            self.cpp_info.requires.extend(['libgta::libgta'])
-
+            self.cpp_info.requires.extend(["libgta::libgta"])
         if self.options.with_hdf4:
-            self.cpp_info.requires.extend(['hdf4::hdf4'])
-
+            self.cpp_info.requires.extend(["hdf4::hdf4"])
         if self.options.with_hdf5:
-            self.cpp_info.requires.extend(['hdf5::hdf5_c'])
-
+            self.cpp_info.requires.extend(["hdf5::hdf5_c"])
         if self.options.with_heif:
-            self.cpp_info.requires.extend(['libheif::libheif'])
-
+            self.cpp_info.requires.extend(["libheif::libheif"])
+        if self.options.with_jxl:
+            self.cpp_info.requires.extend(["libjxl::libjxl"])
         if self.options.with_kea:
-            self.cpp_info.requires.extend(['kealib::kealib'])
-
+            self.cpp_info.requires.extend(["kealib::kealib"])
+        if self.options.with_lerc:
+            self.cpp_info.requires.extend(["lerc::lerc"])
+        if self.options.get_safe("with_libaec"):
+            self.cpp_info.requires.extend(["libaec::libaec"])
+        if self.options.with_libarchive:
+            self.cpp_info.requires.extend(["libarchive::libarchive"])
         if self.options.with_libdeflate:
-            self.cpp_info.requires.extend(['libdeflate::libdeflate'])
-
+            self.cpp_info.requires.extend(["libdeflate::libdeflate"])
         if self.options.with_libiconv:
-            self.cpp_info.requires.extend(['libiconv::libiconv'])
-
+            self.cpp_info.requires.extend(["libiconv::libiconv"])
         if self.options.with_jpeg == "libjpeg":
-            self.cpp_info.requires.extend(['libjpeg::libjpeg'])
+            self.cpp_info.requires.extend(["libjpeg::libjpeg"])
         elif self.options.with_jpeg == "libjpeg-turbo":
-            self.cpp_info.requires.extend(['libjpeg-turbo::turbojpeg'])
-
+            self.cpp_info.requires.extend(["libjpeg-turbo::turbojpeg"])
         if self.options.with_libkml:
-            self.cpp_info.requires.extend(['libkml::kmldom', 'libkml::kmlengine'])
-
-        if self.options.with_libtiff:
-            self.cpp_info.requires.extend(['libtiff::libtiff'])
-
+            self.cpp_info.requires.extend(["libkml::kmldom", "libkml::kmlengine"])
+        if self.options.with_lzma:
+            self.cpp_info.requires.extend(["xz_utils::xz_utils"])
         if self.options.with_lz4:
-            self.cpp_info.requires.extend(['lz4::lz4'])
-
+            self.cpp_info.requires.extend(["lz4::lz4"])
         if self.options.with_mongocxx:
-            self.cpp_info.requires.extend(['mongo-cxx-driver::mongo-cxx-driver'])
-
+            self.cpp_info.requires.extend(["mongo-cxx-driver::mongo-cxx-driver"])
         if self.options.with_mysql == "libmysqlclient":
-            self.cpp_info.requires.extend(['libmysqlclient::libmysqlclient'])
+            self.cpp_info.requires.extend(["libmysqlclient::libmysqlclient"])
         elif self.options.with_mysql == "mariadb-connector-c":
-            self.cpp_info.requires.extend(['mariadb-connector-c::mariadb-connector-c'])
-
+            self.cpp_info.requires.extend(["mariadb-connector-c::mariadb-connector-c"])
         if self.options.with_netcdf:
-            self.cpp_info.requires.extend(['netcdf::netcdf'])
-
+            self.cpp_info.requires.extend(["netcdf::netcdf"])
         if self.options.with_odbc:
-            self.cpp_info.requires.extend(['odbc::odbc'])
-
+            self.cpp_info.requires.extend(["odbc::odbc"])
+        if self.options.with_opencl:
+            self.cpp_info.requires.extend(["opencl-icd-loader::opencl-icd-loader"])
         if self.options.with_openjpeg:
-            self.cpp_info.requires.extend(['openjpeg::openjpeg'])
-
+            self.cpp_info.requires.extend(["openjpeg::openjpeg"])
         if self.options.with_openssl:
-            self.cpp_info.requires.extend(['openssl::ssl'])
-
+            self.cpp_info.requires.extend(["openssl::ssl"])
         if self.options.with_pcre:
-            self.cpp_info.requires.extend(['pcre::pcre'])
-
+            self.cpp_info.requires.extend(["pcre::pcre"])
         if self.options.with_pcre2:
-            self.cpp_info.requires.extend(['pcre2::pcre2-8'])
-
+            self.cpp_info.requires.extend(["pcre2::pcre2-8"])
+        # if self.options.with_pdfium:
+        #     self.cpp_info.requires.extend(["pdfium::pdfium"])
         if self.options.with_pg:
-            self.cpp_info.requires.extend(['libpq::pq'])
-
+            self.cpp_info.requires.extend(["libpq::pq"])
         if self.options.with_png:
-            self.cpp_info.requires.extend(['libpng::libpng'])
-
+            self.cpp_info.requires.extend(["libpng::libpng"])
         if self.options.with_podofo:
-            self.cpp_info.requires.extend(['podofo::podofo'])
-
+            self.cpp_info.requires.extend(["podofo::podofo"])
         if self.options.with_poppler:
-            self.cpp_info.requires.extend(['poppler::libpoppler'])
-
-        if self.options.with_proj:
-            self.cpp_info.requires.extend(['proj::projlib'])
-
+            self.cpp_info.requires.extend(["poppler::libpoppler"])
+        if self.options.with_rasterlite2:
+            self.cpp_info.requires.extend(["librasterlite2::librasterlite2"])
         if self.options.with_qhull:
-            self.cpp_info.requires.extend(['qhull::libqhull'])
-
+            self.cpp_info.requires.extend(["qhull::libqhull"])
+        if self.options.with_spatialite:
+            self.cpp_info.requires.extend(["libspatialite::libspatialite"])
         if self.options.with_sqlite3:
-            self.cpp_info.requires.extend(['sqlite3::sqlite'])
-
+            self.cpp_info.requires.extend(["sqlite3::sqlite"])
+        if self.options.with_tiledb:
+            self.cpp_info.requires.extend(["tiledb::tiledb"])
         if self.options.with_webp:
-            self.cpp_info.requires.extend(['libwebp::libwebp'])
-
+            self.cpp_info.requires.extend(["libwebp::libwebp"])
         if self.options.with_xerces:
-            self.cpp_info.requires.extend(['xerces-c::xerces-c'])
-
+            self.cpp_info.requires.extend(["xerces-c::xerces-c"])
         if self.options.with_xml2:
-            self.cpp_info.requires.extend(['libxml2::libxml2'])
-
-        if self.options.with_zlib:
-            self.cpp_info.requires.extend(['zlib::zlib'])
-
+            self.cpp_info.requires.extend(["libxml2::libxml2"])
         if self.options.with_zstd:
-            self.cpp_info.requires.extend(['zstd::zstdlib'])
+            self.cpp_info.requires.extend(["zstd::zstdlib"])
+
+        # Based on https://github.com/OSGeo/gdal/blob/v3.7.2/port/CMakeLists.txt
+        if self.settings.os in ["Linux", "FreeBSD"]:
+            self.cpp_info.system_libs += ["pthread"]
+        elif self.settings.os == "Windows":
+            if is_msvc(self):
+                self.cpp_info.system_libs += ["wbemuuid"]
+            if self.options.with_openssl:
+                self.cpp_info.system_libs += ["crypt32"]
 
         gdal_data_path = os.path.join(self.package_folder, "res", "gdal")
-        self.output.info(
-            "Prepending to GDAL_DATA environment variable: {}".format(
-                gdal_data_path))
-        self.runenv_info.prepend_path("GDAL_DATA", gdal_data_path)
-        # TODO: to remove after conan v2, it allows to not break consumers still relying on virtualenv generator
-        self.env_info.GDAL_DATA = gdal_data_path
+        self.runenv_info.define_path("GDAL_DATA", gdal_data_path)
 
         if self.options.tools:
-            self.buildenv_info.prepend_path("GDAL_DATA", gdal_data_path)
-            bin_path = os.path.join(self.package_folder, "bin")
-            self.output.info(
-                "Appending PATH environment variable: {}".format(bin_path))
-            self.env_info.PATH.append(bin_path)
+            self.buildenv_info.define_path("GDAL_DATA", gdal_data_path)
+
+        # TODO: remove in conan v2
+        self.cpp_info.names["cmake_find_package"] = "GDAL"
+        self.cpp_info.names["cmake_find_package_multi"] = "GDAL"
+        self.cpp_info.filenames["cmake_find_package"] = "GDAL"
+        self.cpp_info.filenames["cmake_find_package_multi"] = "GDAL"
+        self.env_info.GDAL_DATA = gdal_data_path


Test patch:
diff --git a/recipes/gdal/post_3.5.0/test_package/CMakeLists.txt b/recipes/gdal/post_3.5.0/test_package/CMakeLists.txt
--- a/recipes/gdal/post_3.5.0/test_package/CMakeLists.txt
+++ b/recipes/gdal/post_3.5.0/test_package/CMakeLists.txt
@@ -1,10 +1,7 @@
-cmake_minimum_required(VERSION 3.1)
+cmake_minimum_required(VERSION 3.15)
 project(test_package)
 
-include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
-conan_basic_setup(TARGETS)
-
-find_package(GDAL REQUIRED)
+find_package(GDAL REQUIRED CONFIG)
 
 add_executable(${PROJECT_NAME} test_package.cpp)
 target_link_libraries(${PROJECT_NAME} GDAL::GDAL)
diff --git a/recipes/gdal/post_3.5.0/test_package/conanfile.py b/recipes/gdal/post_3.5.0/test_package/conanfile.py
--- a/recipes/gdal/post_3.5.0/test_package/conanfile.py
+++ b/recipes/gdal/post_3.5.0/test_package/conanfile.py
@@ -1,12 +1,20 @@
-from conan import ConanFile
-from conan.tools.build import cross_building
-from conans import CMake
 import os
 
+from conan import ConanFile, conan_version
+from conan.tools.build import can_run
+from conan.tools.cmake import cmake_layout, CMake
+
 
 class TestPackageConan(ConanFile):
-    settings = "os", "compiler", "build_type", "arch"
-    generators = "cmake", "cmake_find_package"
+    settings = "os", "arch", "compiler", "build_type"
+    generators = "CMakeDeps", "CMakeToolchain", "VirtualRunEnv"
+    test_type = "explicit"
+
+    def requirements(self):
+        self.requires(self.tested_reference_str)
+
+    def layout(self):
+        cmake_layout(self)
 
     def build(self):
         cmake = CMake(self)
@@ -14,10 +22,11 @@ def build(self):
         cmake.build()
 
     def test(self):
-        if not cross_building(self):
-            if self.options["gdal"].tools:
-                self.run("gdal_translate --formats", run_environment=True)
-            bin_path = os.path.join("bin", "test_package")
-            self.run(bin_path, run_environment=True)
-            bin_path_c = os.path.join("bin", "test_package_c")
-            self.run(bin_path_c, run_environment=True)
+        if can_run(self):
+            gdal_options = self.options["gdal"] if conan_version < "2" else self.dependencies["gdal"].options
+            if gdal_options.tools:
+                self.run("gdal_translate --formats", env="conanrun")
+            bin_path = os.path.join(self.cpp.build.bindir, "test_package")
+            self.run(bin_path, env="conanrun")
+            bin_path_c = os.path.join(self.cpp.build.bindir, "test_package_c")
+            self.run(bin_path_c, env="conanrun")
diff --git a/recipes/gdal/post_3.5.0/test_v1_package/CMakeLists.txt b/recipes/gdal/post_3.5.0/test_v1_package/CMakeLists.txt
new file mode 100644
--- /dev/null
+++ b/recipes/gdal/post_3.5.0/test_v1_package/CMakeLists.txt
@@ -0,0 +1,8 @@
+cmake_minimum_required(VERSION 3.15)
+project(test_package)
+
+include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
+conan_basic_setup(TARGETS)
+
+add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../test_package
+                 ${CMAKE_CURRENT_BINARY_DIR}/test_package)
diff --git a/recipes/gdal/post_3.5.0/test_v1_package/conanfile.py b/recipes/gdal/post_3.5.0/test_v1_package/conanfile.py
new file mode 100644
--- /dev/null
+++ b/recipes/gdal/post_3.5.0/test_v1_package/conanfile.py
@@ -0,0 +1,23 @@
+from conan import ConanFile
+from conan.tools.build import cross_building
+from conans import CMake
+import os
+
+
+class TestPackageConan(ConanFile):
+    settings = "os", "compiler", "build_type", "arch"
+    generators = "cmake", "cmake_find_package_multi"
+
+    def build(self):
+        cmake = CMake(self)
+        cmake.configure()
+        cmake.build()
+
+    def test(self):
+        if not cross_building(self):
+            if self.options["gdal"].tools:
+                self.run("gdal_translate --formats", run_environment=True)
+            bin_path = os.path.join("bin", "test_package")
+            self.run(bin_path, run_environment=True)
+            bin_path_c = os.path.join("bin", "test_package_c")
+            self.run(bin_path_c, run_environment=True)