tag 1031799 patch thanksBrad King has mostly fixed this problem upstream [1]. I've opened a pull request [2] that backports his patch series and adds another small fix required to close this bug.
Sincerely, Cory Bloor [1]: https://gitlab.kitware.com/cmake/cmake/-/merge_requests/8525 [2]: https://salsa.debian.org/cmake-team/cmake/-/merge_requests/12

