This is already used in multiple CIs, and will soon become a requirement for most CIs, i.e when we migrate depends packages to use CMake, for example: #21778 (comment).
Some of the CIs in 21778 are failing because CMake isn't available, so just break this out and make CMake globally available.