Skip to content

Upgrade gdal version in superbuild

Cédric Traizet requested to merge upgrade_gdal_superbuild into develop


Upgrade GDAL version in the superbuild to 2.4.1


see associated issue.

Implementation Details

We are not calling GDALDestroyDriverManager but GDALDestroy instead. That is why we added a patch in GDAL, so that the OGRCleanupAll calls GDALDestroy too.

Additional notes

The CMake function try_run does not automatically passe the compilation flags. So we need to add it manually, that is why we added a new macro for c compilation (without those flags).


The copyright owner is CNES and has signed the ORFEO ToolBox Contributor License Agreement.

Check before merging:

  • All discussions are resolved
  • At least 2 👍 votes from core developers, no 👎 vote.
  • The feature branch is (reasonably) up-to-date with the base branch
  • Dashboard is green
  • Copyright owner has signed the ORFEO ToolBox Contributor License Agreement
  • Optionally, run git diff develop... -U0 --no-color | -p1 -i on latest changes and commit
Edited by Antoine Regimbeau

Merge request reports