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