RFC: Stand-alone build support

Thanks Tom, +1

I’ve been baffled sometimes by standalone builds, and having them documented and tested will be a big improvement. One reason CMake is a haunted graveyard for me is these configurations I don’t understand and can’t verify.

Distro maintainers’ work is extremely valuable and this is clearly important to them, so to me standalone builds are worth the costs. If someone finds a simpler way to achieve the same end, great. But until then, this RFC should make standalone builds both cheaper and better.


Can you clarify the situation around clang-tools-extra? Today can’t be built fully-standalone, but can be buit as part of a standalone clang. This clang build seems to violate “only the source from the subproject’s directory”.

How is this setup affected by this proposal? Will it be supported, keep the ambiguous status quo, or explicitly unsupported? If standalone builds aren’t supported for certain subprojects, can the CMake logic be dropped?