[gdal-dev] Building with cmake

Paul Harwood runette at gmail.com
Sun May 8 02:27:11 PDT 2022


I get that error message when I try to use the source directory as the
build directory.

With cmake, it is better to use a different folder structure for the build
- if I remember correctly something like running cmake in a clean version
of the repository but using ..

cmake -S . -B ../build

On Sun, 8 May 2022, 09:56 Bjørn Ruff, <br at forstware.de> wrote:

> Hello,
>
> can someone help building gdal with cmake?
>
> I end up with
>
> ....
> -- Looking for C++ include atlbase.h
> -- Looking for C++ include atlbase.h - found
> CMake Error at cmake/helpers/GdalVersion.cmake:40 (message):
>    C:/externLibs/gdal_new/gcore/gdal_version.h was found, and likely
> conflicts
>    with C:/externLibs/gdal_new/Debug/gcore/gdal_version.h
> Call Stack (most recent call first):
>    gdal.cmake:220 (include)
>    CMakeLists.txt:218 (include)
>
> -- Configuring incomplete, errors occurred!
> See also "C:/externLibs/gdal_new/Debug/CMakeFiles/CMakeOutput.log".
> See also "C:/externLibs/gdal_new/Debug/CMakeFiles/CMakeError.log".
>
>
> --
> Cheers,
> Bjørn Ruff
> Forstware Informationssysteme
> Von Lassbergstr. 35
> D 88709 Meersburg
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20220508/7e7d77e9/attachment.htm>


More information about the gdal-dev mailing list