[CMake] Extend copy-legacy-layouts dependency to swiftmodules (#34846)
[CMake] Extend copy-legacy-layouts dependency to swiftmodules (#34846)

... and other products as well.

Before this change, the dependency was enforced only for stdlib object
files -- since according to the Ninja dependency graph other libraries
can be scheduled as soon as the swiftmodules are ready, there is a
chance that we attempt to build those before legacy layours are copied.

Addresses rdar://71559791
glessard/swift,rudkx/swift,JGiola/swift,xwu/swift,tkremenek/swift,benlangmuir/swift,jmgc/swift,hooman/swift,apple/swift,parkera/swift,ahoppen/swift,JGiola/swift,benlangmuir/swift,tkremenek/swift,gregomni/swift,apple/swift,gregomni/swift,hooman/swift,roambotics/swift,JGiola/swift,ahoppen/swift,ahoppen/swift,roambotics/swift,apple/swift,atrick/swift,apple/swift,JGiola/swift,tkremenek/swift,xwu/swift,rudkx/swift,xwu/swift,JGiola/swift,atrick/swift,hooman/swift,atrick/swift,benlangmuir/swift,atrick/swift,gregomni/swift,ahoppen/swift,rudkx/swift,xwu/swift,tkremenek/swift,atrick/swift,glessard/swift,jmgc/swift,roambotics/swift,parkera/swift,xwu/swift,gregomni/swift,jmgc/swift,jmgc/swift,benlangmuir/swift,jmgc/swift,apple/swift,roambotics/swift,glessard/swift,hooman/swift,parkera/swift,ahoppen/swift,atrick/swift,rudkx/swift,xwu/swift,tkremenek/swift,glessard/swift,parkera/swift,glessard/swift,benlangmuir/swift,parkera/swift,gregomni/swift,jmgc/swift,glessard/swift,apple/swift,parkera/swift,parkera/swift,gregomni/swift,rudkx/swift,rudkx/swift,tkremenek/swift,hooman/swift,xwu/swift,parkera/swift,jmgc/swift,roambotics/swift,ahoppen/swift,tkremenek/swift,hooman/swift,hooman/swift,JGiola/swift,roambotics/swift,benlangmuir/swift