llvm-rc: Depfiles are written into source tree when llvm-rc is used as RC compiler
In CMake 3.17, when using llvm-rc as the CMAKE_RC_COMPILER, .d depfiles are incorrectly written into the source tree instead of the build tree.
This looks to be caused by the following piece of the CMAKE_RC_COMPILE_OBJECT
rule: -clang:-MD -clang:-MF -clang:<SOURCE>.d
. See: https://gitlab.kitware.com/cmake/cmake/-/blob/v3.17.0/Modules/Platform/Windows-Clang.cmake#L144
Edited by Brad King