CMake has no protection against configuring in repo root?
As Nami found. You can configure cmake in the root with no issues and it will happily spew all it's files into the source tree! This should NOT happen at all and it should error out if you don't configure it into a subfolder. or even better. if you try and configure outside of a subfolder to default to build/
as the directory to place files in.
Addition: a better set of instructions for configuring and building with cmake from the root of the repo would be
cmake -B build && cmake --build build --config [Config]
don't assume the user already knows to mkdir build && cd build
, most other projects have in source build protection for a reason.