<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 28, 2024 at 7:45 PM Even Rouault via QGIS-Developer <<a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>

  
    
  
  <div>
    <p>and then when configuring QGIS, use GDAL_DIR=$HOME/install-gdal-3.7.2 
      . I'm not totally sure about that last part. may require tweaking.
      you could alter the PATH to point to $HOME/install-gdal-3.7.2/bin
      so that "gdal-config" from your installed GDAL is picked up</p></div></blockquote><div><br></div><div>It will first try to locate GDAL via cmake config (<a href="https://github.com/qgis/QGIS/blob/master/cmake/FindGDAL.cmake#L16">https://github.com/qgis/QGIS/blob/master/cmake/FindGDAL.cmake#L16</a>). Only if that fails it will fall back to the gdal-config executable.</div><div><br></div><div>To help cmake find a package on a custom install prefix, refer to <a href="https://cmake.org/cmake/help/latest/command/find_package.html#config-mode-search-procedure">https://cmake.org/cmake/help/latest/command/find_package.html#config-mode-search-procedure</a></div><div><br></div><div>in your case I'd suggest using `-D GDAL_ROOT=$HOME/install-gdal-3.7.2` after installing</div><div><br></div><div>Matthias</div><div><br></div></div></div>