[gdal-dev] Building with cmake

Greg Troxel gdt at lexort.com
Sun May 8 05:13:49 PDT 2022


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 --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20220508/d30f252e/attachment.sig>


More information about the gdal-dev mailing list