[gdal-dev] Building with cmake

Paul Harwood runette at gmail.com
Sun May 8 13:03:39 PDT 2022


https://gdal.org/build_hints.html#build-hints

??


On Sun, 8 May 2022, 13:13 Greg Troxel, <gdt at lexort.com> wrote:

>
> Even Rouault <even.rouault at spatialys.com> writes:
>
> > In-tree CMake builds are only partly supported currently, because of
> > the continued support of autoconf/nmake and conflicts between
> > generated files of CMake with files used by autoconf/nmake. We should
> > be able to fix that once support for autoconf/nmake is gone
> >
> > Anyway out of tree builds are always recommended.
> >
> > When doing "cmake ." you'll get the following warning at the end:
> >
> > CMake Warning at gdal.cmake:872 (message):
> >   In-tree builds, that is running cmake from the top of the source tree
> are
> >   not recommended.  You are advised instead to 'mkdir build; cd build;
> > cmake
> >   ..'.  Using 'make' with the Makefile generator will not work, as it
> will
> >   try the GNUmakefile of autoconf builds.  Use 'make -f Makefile'
> instead.
> > Call Stack (most recent call first):
> >   CMakeLists.txt:218 (include)
>
> The problem is that there are no instructions for building with cmake,
> and something that normally works with cmake does not.  By 'there are no
> instructions', I mean that I looked at README.md (which is hard to read
> in text because of all the CI stuff), and looked for INSTALL* and
> BUILDING*, and grepped for cmake.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20220508/ba5730e8/attachment.htm>


More information about the gdal-dev mailing list