<div dir="ltr">I have successfully built QGIS and GDAL (3.7.2) separately. Now I want to build QGIS against this GDAL. This is what I tried:<div><br></div><div>git clone git@github.com:qgis/QGIS.git</div><div>cd QGIS</div><div>mkdir build</div><div>cd build</div><div>GDAL_DIR=/home/velle/gdal3.7.2/build cmake ..</div><div><br></div><div>The output contains the following error for GDAL:</div><div><br></div><div>CMake Error at /home/velle/gdal-3.7.2/build/GDALConfig.cmake:24 (include):<br></div><div>  include could not find requested file:<br>    /home/velle/gdal-3.7.2/build/GDAL-targets.cmake<br>Call Stack (most recent call first):<br>  cmake/FindGDAL.cmake:16 (find_package)<br>  CMakeLists.txt:365 (find_package)<br><br>Could someone please tell me if I'm even doing it right?<br><br>More info in these two gists:</div><div><a href="https://gist.github.com/velle/596a137dfe1c2325a056b5c8e3146efd#file-shell-output">https://gist.github.com/velle/596a137dfe1c2325a056b5c8e3146efd#file-shell-output</a><br></div><div><a href="https://gist.github.com/velle/596a137dfe1c2325a056b5c8e3146efd#file-cmakeoutput-log">https://gist.github.com/velle/596a137dfe1c2325a056b5c8e3146efd#file-cmakeoutput-log</a></div><div><br></div><div>Best regards, Thomas</div><div><br></div></div>