Remove a target dependency?

I’m looking for a workaround for this bug. CMake is creating a dependency on a non-existent file for no good reason I can see. The exact same custom command pattern has been used elsewhere with success. It seems unlikely to exist, but if there were a way to remove an already-created target dependency it might get me out of a jam. Is there such a thing?

No, there’s no way to remove a dependency of a target.