This reverts commit f8ba38f3b9. See: https://gitlab.kitware.com/cmake/cmake/-/issues/22024
f8ba38f3b9