This reverts commitfa65a228f4. This relands commitab405fb6e9. There was an issue where CMake versions <3.23.0 would not properly parse dep files, causing the build to file. This patch fixes that by just making CMake versions <3.23.0 use the fallback behavior.