This by far not the first request (disclaimer: one of them’s mine) for supporting a post-generation hook. Wrappers are cumbersome. Would CMake developers be willing to re-consider the policy of “we don’t want to support user-defined post-generation processing,” at least if it came with a big warning “It may break if we change the way we produce output, you’ve been warned”?
I understand projects “in the wild” need to cope with being processed by unexpected versions of CMake, but CMake is also used by companies for in-house software development. There, environments (including CMake version) are much more controlled, so adapting to a change in CMake’s output behaviour is easier. At the same time, special requirements which would benefit from a post-generation step are much more likely to exist (as follows from the same existence of the usually quite bespoke environment).
I can accept the answer remaining “no,” but I thought I’d at least raise the question again.