Warn or error when custom commands duplicate a MAIN_DEPENDENCY
This is easy enough to hit in common code which calls add_custom_command
deep in a call stack. CMake should be able to detect and warn or error about this. Not sure if a policy would be required for the error case since it's actually a broken build otherwise.
See #16580.