[CMake] In '_compile_swift_files' function, 'objdir' is supposed to be set to the parent path, not the filename.
[CMake] In '_compile_swift_files' function, 'objdir' is supposed to be set to the parent path, not the filename.

This worked in standalone build by creating a directory that never got used but it failed in a non-standalone build.
Fix tracked with Dmitri's help.

Swift SVN r24180

kusl/swift,shahmishal/swift,CodaFi/swift,amraboelela/swift,amraboelela/swift,shajrawi/swift,brentdax/swift,CodaFi/swift,gottesmm/swift,brentdax/swift,khizkhiz/swift,Ivacker/swift,apple/swift,tardieu/swift,SwiftAndroid/swift,khizkhiz/swift,return/swift,tkremenek/swift,karwa/swift,CodaFi/swift,hughbe/swift,Ivacker/swift,kperryua/swift,frootloops/swift,emilstahl/swift,dreamsxin/swift,hooman/swift,emilstahl/swift,return/swift,parkera/swift,karwa/swift,KrishMunot/swift,johnno1962d/swift,ken0nek/swift,KrishMunot/swift,lorentey/swift,huonw/swift,natecook1000/swift,KrishMunot/swift,ben-ng/swift,Ivacker/swift,manavgabhawala/swift,amraboelela/swift,JaSpa/swift,JGiola/swift,uasys/swift,return/swift,xedin/swift,manavgabhawala/swift,Jnosh/swift,Ivacker/swift,practicalswift/swift,ahoppen/swift,dduan/swift,shahmishal/swift,parkera/swift,brentdax/swift,uasys/swift,arvedviehweger/swift,therealbnut/swift,MukeshKumarS/Swift,JaSpa/swift,dduan/swift,OscarSwanros/swift,Jnosh/swift,harlanhaskins/swift,russbishop/swift,brentdax/swift,lorentey/swift,jckarter/swift,kusl/swift,gottesmm/swift,practicalswift/swift,KrishMunot/swift,Jnosh/swift,tjw/swift,modocache/swift,tardieu/swift,rudkx/swift,JaSpa/swift,apple/swift,aschwaighofer/swift,kusl/swift,ken0nek/swift,felix91gr/swift,return/swift,tinysun212/swift-windows,emilstahl/swift,cbrentharris/swift,austinzheng/swift,OscarSwanros/swift,gmilos/swift,apple/swift,cbrentharris/swift,arvedviehweger/swift,therealbnut/swift,xwu/swift,bitjammer/swift,glessard/swift,JaSpa/swift,amraboelela/swift,alblue/swift,ken0nek/swift,stephentyrone/swift,benlangmuir/swift,benlangmuir/swift,practicalswift/swift,djwbrown/swift,djwbrown/swift,tardieu/swift,manavgabhawala/swift,felix91gr/swift,slavapestov/swift,ahoppen/swift,zisko/swift,danielmartin/swift,shajrawi/swift,rudkx/swift,JGiola/swift,ken0nek/swift,slavapestov/swift,stephentyrone/swift,airspeedswift/swift,calebd/swift,tardieu/swift,frootloops/swift,gribozavr/swift,kperryua/swift,calebd/swift,LeoShimonaka/swift,kentya6/swift,dduan/swift,kperryua/swift,jtbandes/swift,swiftix/swift,kperryua/swift,roambotics/swift,practicalswift/swift,SwiftAndroid/swift,tardieu/swift,johnno1962d/swift,hughbe/swift,IngmarStein/swift,sschiau/swift,ben-ng/swift,arvedviehweger/swift,JaSpa/swift,gottesmm/swift,Jnosh/swift,aschwaighofer/swift,hughbe/swift,ahoppen/swift,shajrawi/swift,hooman/swift,kentya6/swift,shahmishal/swift,OscarSwanros/swift,bitjammer/swift,amraboelela/swift,austinzheng/swift,roambotics/swift,aschwaighofer/swift,gmilos/swift,zisko/swift,tinysun212/swift-windows,jopamer/swift,sschiau/swift,russbishop/swift,IngmarStein/swift,cbrentharris/swift,bitjammer/swift,adrfer/swift,calebd/swift,jmgc/swift,gottesmm/swift,djwbrown/swift,brentdax/swift,practicalswift/swift,djwbrown/swift,xwu/swift,sdulal/swift,alblue/swift,adrfer/swift,tkremenek/swift,tjw/swift,jopamer/swift,huonw/swift,frootloops/swift,aschwaighofer/swift,therealbnut/swift,hughbe/swift,SwiftAndroid/swift,MukeshKumarS/Swift,benlangmuir/swift,kentya6/swift,natecook1000/swift,modocache/swift,jmgc/swift,khizkhiz/swift,airspeedswift/swift,codestergit/swift,shahmishal/swift,jtbandes/swift,hooman/swift,khizkhiz/swift,milseman/swift,cbrentharris/swift,nathawes/swift,parkera/swift,deyton/swift,jtbandes/swift,jtbandes/swift,jmgc/swift,felix91gr/swift,LeoShimonaka/swift,MukeshKumarS/Swift,parkera/swift,harlanhaskins/swift,sdulal/swift,dduan/swift,mightydeveloper/swift,mightydeveloper/swift,kstaring/swift,ahoppen/swift,Jnosh/swift,hooman/swift,airspeedswift/swift,dduan/swift,xedin/swift,mightydeveloper/swift,jckarter/swift,arvedviehweger/swift,milseman/swift,frootloops/swift,jmgc/swift,khizkhiz/swift,kentya6/swift,djwbrown/swift,arvedviehweger/swift,rudkx/swift,swiftix/swift,swiftix/swift.old,austinzheng/swift,atrick/swift,stephentyrone/swift,ben-ng/swift,allevato/swift,milseman/swift,harlanhaskins/swift,amraboelela/swift,huonw/swift,SwiftAndroid/swift,shahmishal/swift,glessard/swift,CodaFi/swift,jopamer/swift,atrick/swift,cbrentharris/swift,sschiau/swift,devincoughlin/swift,danielmartin/swift,IngmarStein/swift,swiftix/swift.old,ken0nek/swift,IngmarStein/swift,sschiau/swift,hooman/swift,kstaring/swift,zisko/swift,jtbandes/swift,sdulal/swift,xwu/swift,calebd/swift,harlanhaskins/swift,mightydeveloper/swift,alblue/swift,sschiau/swift,emilstahl/swift,ben-ng/swift,xedin/swift,natecook1000/swift,LeoShimonaka/swift,gottesmm/swift,natecook1000/swift,gribozavr/swift,MukeshKumarS/Swift,russbishop/swift,allevato/swift,sdulal/swift,slavapestov/swift,karwa/swift,cbrentharris/swift,bitjammer/swift,glessard/swift,airspeedswift/swift,manavgabhawala/swift,roambotics/swift,KrishMunot/swift,kusl/swift,aschwaighofer/swift,JaSpa/swift,benlangmuir/swift,atrick/swift,tkremenek/swift,hughbe/swift,shahmishal/swift,tardieu/swift,kusl/swift,frootloops/swift,glessard/swift,apple/swift,aschwaighofer/swift,rudkx/swift,tkremenek/swift,jmgc/swift,calebd/swift,JGiola/swift,devincoughlin/swift,atrick/swift,swiftix/swift.old,IngmarStein/swift,deyton/swift,practicalswift/swift,ken0nek/swift,alblue/swift,uasys/swift,return/swift,stephentyrone/swift,ahoppen/swift,LeoShimonaka/swift,allevato/swift,johnno1962d/swift,johnno1962d/swift,felix91gr/swift,nathawes/swift,gottesmm/swift,ben-ng/swift,Ivacker/swift,natecook1000/swift,OscarSwanros/swift,nathawes/swift,sdulal/swift,gribozavr/swift,khizkhiz/swift,return/swift,kstaring/swift,codestergit/swift,zisko/swift,djwbrown/swift,alblue/swift,devincoughlin/swift,devincoughlin/swift,russbishop/swift,swiftix/swift.old,cbrentharris/swift,jmgc/swift,slavapestov/swift,allevato/swift,xwu/swift,modocache/swift,kusl/swift,bitjammer/swift,adrfer/swift,kusl/swift,LeoShimonaka/swift,karwa/swift,hooman/swift,uasys/swift,arvedviehweger/swift,karwa/swift,swiftix/swift,gribozavr/swift,roambotics/swift,tjw/swift,huonw/swift,adrfer/swift,devincoughlin/swift,IngmarStein/swift,swiftix/swift.old,lorentey/swift,aschwaighofer/swift,kentya6/swift,ahoppen/swift,gottesmm/swift,nathawes/swift,kperryua/swift,roambotics/swift,huonw/swift,gmilos/swift,Jnosh/swift,swiftix/swift.old,deyton/swift,alblue/swift,lorentey/swift,gregomni/swift,return/swift,karwa/swift,adrfer/swift,xedin/swift,sschiau/swift,cbrentharris/swift,milseman/swift,russbishop/swift,modocache/swift,austinzheng/swift,lorentey/swift,nathawes/swift,milseman/swift,dduan/swift,stephentyrone/swift,johnno1962d/swift,ben-ng/swift,CodaFi/swift,airspeedswift/swift,sdulal/swift,apple/swift,therealbnut/swift,gregomni/swift,tjw/swift,devincoughlin/swift,JGiola/swift,adrfer/swift,uasys/swift,kentya6/swift,devincoughlin/swift,kstaring/swift,codestergit/swift,swiftix/swift.old,bitjammer/swift,felix91gr/swift,gmilos/swift,hughbe/swift,shahmishal/swift,jtbandes/swift,practicalswift/swift,huonw/swift,bitjammer/swift,allevato/swift,slavapestov/swift,djwbrown/swift,rudkx/swift,allevato/swift,Ivacker/swift,frootloops/swift,shahmishal/swift,uasys/swift,jckarter/swift,kstaring/swift,hooman/swift,felix91gr/swift,parkera/swift,tkremenek/swift,jckarter/swift,harlanhaskins/swift,KrishMunot/swift,gregomni/swift,kentya6/swift,xwu/swift,emilstahl/swift,therealbnut/swift,zisko/swift,huonw/swift,benlangmuir/swift,LeoShimonaka/swift,swiftix/swift,tinysun212/swift-windows,codestergit/swift,LeoShimonaka/swift,frootloops/swift,therealbnut/swift,tinysun212/swift-windows,practicalswift/swift,nathawes/swift,xwu/swift,MukeshKumarS/Swift,atrick/swift,gribozavr/swift,shajrawi/swift,parkera/swift,devincoughlin/swift,milseman/swift,stephentyrone/swift,glessard/swift,harlanhaskins/swift,danielmartin/swift,karwa/swift,jmgc/swift,JGiola/swift,calebd/swift,jopamer/swift,kentya6/swift,therealbnut/swift,SwiftAndroid/swift,tkremenek/swift,calebd/swift,russbishop/swift,mightydeveloper/swift,jckarter/swift,nathawes/swift,shajrawi/swift,modocache/swift,codestergit/swift,modocache/swift,tardieu/swift,rudkx/swift,modocache/swift,karwa/swift,zisko/swift,natecook1000/swift,KrishMunot/swift,danielmartin/swift,shajrawi/swift,natecook1000/swift,shajrawi/swift,mightydeveloper/swift,sdulal/swift,OscarSwanros/swift,russbishop/swift,danielmartin/swift,kperryua/swift,emilstahl/swift,kstaring/swift,deyton/swift,stephentyrone/swift,mightydeveloper/swift,atrick/swift,khizkhiz/swift,CodaFi/swift,tjw/swift,brentdax/swift,felix91gr/swift,tinysun212/swift-windows,manavgabhawala/swift,gribozavr/swift,benlangmuir/swift,SwiftAndroid/swift,gregomni/swift,milseman/swift,OscarSwanros/swift,tjw/swift,dduan/swift,JGiola/swift,jtbandes/swift,Ivacker/swift,airspeedswift/swift,tinysun212/swift-windows,swiftix/swift,parkera/swift,allevato/swift,lorentey/swift,sschiau/swift,hughbe/swift,gregomni/swift,codestergit/swift,alblue/swift,LeoShimonaka/swift,tjw/swift,MukeshKumarS/Swift,austinzheng/swift,sschiau/swift,gmilos/swift,gribozavr/swift,danielmartin/swift,dreamsxin/swift,deyton/swift,harlanhaskins/swift,manavgabhawala/swift,swiftix/swift,jopamer/swift,parkera/swift,manavgabhawala/swift,tkremenek/swift,apple/swift,austinzheng/swift,shajrawi/swift,xedin/swift,lorentey/swift,johnno1962d/swift,jopamer/swift,xedin/swift,brentdax/swift,mightydeveloper/swift,MukeshKumarS/Swift,uasys/swift,johnno1962d/swift,ken0nek/swift,kperryua/swift,deyton/swift,Ivacker/swift,danielmartin/swift,roambotics/swift,OscarSwanros/swift,ben-ng/swift,xwu/swift,jopamer/swift,tinysun212/swift-windows,jckarter/swift,slavapestov/swift,JaSpa/swift,adrfer/swift,codestergit/swift,lorentey/swift,xedin/swift,SwiftAndroid/swift,Jnosh/swift,gmilos/swift,gribozavr/swift,slavapestov/swift,emilstahl/swift,emilstahl/swift,amraboelela/swift,zisko/swift,kusl/swift,CodaFi/swift,swiftix/swift.old,deyton/swift,sdulal/swift,gregomni/swift,gmilos/swift,jckarter/swift,xedin/swift,glessard/swift,austinzheng/swift,airspeedswift/swift,IngmarStein/swift,arvedviehweger/swift,swiftix/swift,kstaring/swift