[gdal-dev] About CMake build again

Dmitry Baryshnikov bishop.dev at gmail.com
Sat Oct 28 18:37:36 PDT 2017


Hi Brad.

Yes you are right. Just do this steps:

|git clone https://github.com/nextgis-borsch/lib_gdal.git gdal cd gdal 
mkdir build cd build cmake .. cmake --build .|

Some discussion was in this ticket 
(https://github.com/nextgis-borsch/lib_gdal/issues/13).

There are 3 scenarios supported by lib_gdal now:

1. Build gdal with all dependencies getting them from github 
(WITH_EXTERNAL). Preferable for Windows

2. Build gdal using the system libraries. Preferable for Linux

3. Build gdal using the dependency libraries build by user (out of 
source) and registered in CMake package registry. This is I use now. 
This script help me to clone all libraries, build them and register them 
in CMake package registry 
(https://github.com/nextgis-borsch/borsch/blob/master/opt/tools.py#L134).

Best regards,
     Dmitry

29.10.17 2:39, bradh at frogmouth.net пишет:
> Is there a way to invoke that “do all the dependency work for me” (`find_anyproject`) from the cmake command line?
>
> So if I clone your lib_gdal repo, it could build GDAL and any required dependencies?
>
> Brad
>
>   
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20171029/608c57ab/attachment.html>


More information about the gdal-dev mailing list