Paul Harwood <[email protected]> writes:

> 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

or

  mkdir build
  cd build
  cmake ..

While I completely agree that it's better to buse a build directory, I
think it's a bug if cmake in the source dir fails, unless it is
documented not to work and it bails out early with a nice error message.

There also should be a checked-in clean script that removes all
cmake-generated files, sort of like "make maintainerclean".

 

Attachment: signature.asc
Description: PGP signature

_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to