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:

git clone g...@github.com:qgis/QGIS.git
cd QGIS
mkdir build
cd build
GDAL_DIR=/home/velle/gdal3.7.2/build cmake ..

The output contains the following error for GDAL:

CMake Error at /home/velle/gdal-3.7.2/build/GDALConfig.cmake:24 (include):
  include could not find requested file:
    /home/velle/gdal-3.7.2/build/GDAL-targets.cmake
Call Stack (most recent call first):
  cmake/FindGDAL.cmake:16 (find_package)
  CMakeLists.txt:365 (find_package)

Could someone please tell me if I'm even doing it right?

More info in these two gists:
https://gist.github.com/velle/596a137dfe1c2325a056b5c8e3146efd#file-shell-output
https://gist.github.com/velle/596a137dfe1c2325a056b5c8e3146efd#file-cmakeoutput-log

Best regards, Thomas
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to