Copy devel/cmake patch from r473149.
devel/cmake-gui also needs this in order to build after r473142.
PR: 229255 Reported by: tcberner