Give some sort of warning about no-space-on-disk
Sometimes, a build can fail because there's not enough space on disk. It's usually space in the build directory that's lacking, but it can also be on the partition holding /var
or /tmp
(on Unix-like machines).
When we configure a build using CMake, then build - this will usually (or always?) result in getting lots of errors, the earliest of which will mention failure to write output, and the later willy probably complain about missing files or even "internal compiler errors". This may confuse the user trying to build.
It would be useful if CMake could warn, at config time, that there may be insufficient space for the build. perhaps later (e.g. if you aggregate). If packages or compilers were also represented to CMake as users of config space, that space can be checked too and a warning issued.