<div dir="auto"><div><a href="https://gdal.org/build_hints.html#build-hints" target="_blank" rel="noreferrer">https://gdal.org/build_hints.html#build-hints</a><div dir="auto"><br></div><div dir="auto">??</div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 8 May 2022, 13:13 Greg Troxel, <<a href="mailto:gdt@lexort.com" target="_blank" rel="noreferrer">gdt@lexort.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Even Rouault <<a href="mailto:even.rouault@spatialys.com" rel="noreferrer noreferrer" target="_blank">even.rouault@spatialys.com</a>> writes:<br>
<br>
> In-tree CMake builds are only partly supported currently, because of<br>
> the continued support of autoconf/nmake and conflicts between<br>
> generated files of CMake with files used by autoconf/nmake. We should<br>
> be able to fix that once support for autoconf/nmake is gone<br>
><br>
> Anyway out of tree builds are always recommended.<br>
><br>
> When doing "cmake ." you'll get the following warning at the end:<br>
><br>
> CMake Warning at gdal.cmake:872 (message):<br>
>   In-tree builds, that is running cmake from the top of the source tree are<br>
>   not recommended.  You are advised instead to 'mkdir build; cd build;<br>
> cmake<br>
>   ..'.  Using 'make' with the Makefile generator will not work, as it will<br>
>   try the GNUmakefile of autoconf builds.  Use 'make -f Makefile' instead.<br>
> Call Stack (most recent call first):<br>
>   CMakeLists.txt:218 (include)<br>
<br>
The problem is that there are no instructions for building with cmake,<br>
and something that normally works with cmake does not.  By 'there are no<br>
instructions', I mean that I looked at README.md (which is hard to read<br>
in text because of all the CI stuff), and looked for INSTALL* and<br>
BUILDING*, and grepped for cmake.<br>
</blockquote></div>
</div></div>