[CMake] Fix subtle CMake bug

CMake specifies that the DEPENDS field of add_custom_target is for files
and output of add_custom_command. In order to add a target dependency,
add_dependencies should be used.

llvm-svn: 359490
GitOrigin-RevId: babcbaf9717248a000734d3e30abce351da307e2
4 files changed