[CMake] Infer -Werror=switch via asserts being enabled (#11098)
[CMake] Infer -Werror=switch via asserts being enabled (#11098)

LLVM-style projects like Swift make heavy use of switch statements and
therefore -Werror=switch is very useful during feature development. That
being said, if asserts are disabled, then you're probably not actively
hacking on the project and -Werror (or warnings in general) aren't
helpful.
frootloops/swift,xwu/swift,jopamer/swift,nathawes/swift,OscarSwanros/swift,tkremenek/swift,atrick/swift,zisko/swift,apple/swift,uasys/swift,atrick/swift,benlangmuir/swift,tkremenek/swift,parkera/swift,austinzheng/swift,alblue/swift,practicalswift/swift,OscarSwanros/swift,huonw/swift,JGiola/swift,tkremenek/swift,JGiola/swift,nathawes/swift,austinzheng/swift,shahmishal/swift,aschwaighofer/swift,xwu/swift,swiftix/swift,devincoughlin/swift,natecook1000/swift,jckarter/swift,brentdax/swift,airspeedswift/swift,OscarSwanros/swift,CodaFi/swift,huonw/swift,nathawes/swift,lorentey/swift,OscarSwanros/swift,xedin/swift,frootloops/swift,shahmishal/swift,parkera/swift,frootloops/swift,jopamer/swift,lorentey/swift,jckarter/swift,austinzheng/swift,airspeedswift/swift,natecook1000/swift,stephentyrone/swift,return/swift,devincoughlin/swift,lorentey/swift,gribozavr/swift,stephentyrone/swift,frootloops/swift,CodaFi/swift,jmgc/swift,CodaFi/swift,devincoughlin/swift,benlangmuir/swift,jopamer/swift,nathawes/swift,swiftix/swift,karwa/swift,shahmishal/swift,karwa/swift,danielmartin/swift,ahoppen/swift,stephentyrone/swift,apple/swift,frootloops/swift,jopamer/swift,parkera/swift,hooman/swift,apple/swift,shahmishal/swift,sschiau/swift,sschiau/swift,jckarter/swift,apple/swift,xedin/swift,sschiau/swift,roambotics/swift,devincoughlin/swift,atrick/swift,brentdax/swift,allevato/swift,jckarter/swift,xwu/swift,xwu/swift,OscarSwanros/swift,return/swift,jckarter/swift,lorentey/swift,gribozavr/swift,devincoughlin/swift,glessard/swift,jmgc/swift,aschwaighofer/swift,austinzheng/swift,deyton/swift,alblue/swift,shajrawi/swift,danielmartin/swift,harlanhaskins/swift,jopamer/swift,deyton/swift,atrick/swift,uasys/swift,austinzheng/swift,roambotics/swift,jmgc/swift,hooman/swift,roambotics/swift,tkremenek/swift,glessard/swift,huonw/swift,sschiau/swift,gregomni/swift,atrick/swift,austinzheng/swift,return/swift,deyton/swift,practicalswift/swift,xedin/swift,rudkx/swift,zisko/swift,tjw/swift,CodaFi/swift,practicalswift/swift,deyton/swift,roambotics/swift,karwa/swift,allevato/swift,tkremenek/swift,harlanhaskins/swift,benlangmuir/swift,xwu/swift,lorentey/swift,jmgc/swift,frootloops/swift,glessard/swift,return/swift,uasys/swift,swiftix/swift,shajrawi/swift,hooman/swift,milseman/swift,gregomni/swift,shajrawi/swift,danielmartin/swift,airspeedswift/swift,stephentyrone/swift,amraboelela/swift,gribozavr/swift,practicalswift/swift,rudkx/swift,JGiola/swift,brentdax/swift,gregomni/swift,hooman/swift,swiftix/swift,huonw/swift,glessard/swift,brentdax/swift,hooman/swift,shahmishal/swift,natecook1000/swift,brentdax/swift,zisko/swift,tkremenek/swift,tjw/swift,lorentey/swift,tjw/swift,CodaFi/swift,amraboelela/swift,parkera/swift,tjw/swift,huonw/swift,atrick/swift,jopamer/swift,practicalswift/swift,danielmartin/swift,JGiola/swift,parkera/swift,hooman/swift,return/swift,alblue/swift,uasys/swift,shajrawi/swift,shajrawi/swift,harlanhaskins/swift,brentdax/swift,amraboelela/swift,gregomni/swift,stephentyrone/swift,shahmishal/swift,milseman/swift,alblue/swift,gribozavr/swift,jckarter/swift,harlanhaskins/swift,austinzheng/swift,shahmishal/swift,roambotics/swift,jckarter/swift,deyton/swift,practicalswift/swift,huonw/swift,jopamer/swift,xedin/swift,practicalswift/swift,airspeedswift/swift,milseman/swift,apple/swift,milseman/swift,nathawes/swift,rudkx/swift,CodaFi/swift,harlanhaskins/swift,shajrawi/swift,shajrawi/swift,amraboelela/swift,brentdax/swift,huonw/swift,parkera/swift,frootloops/swift,rudkx/swift,swiftix/swift,uasys/swift,amraboelela/swift,sschiau/swift,natecook1000/swift,amraboelela/swift,sschiau/swift,CodaFi/swift,karwa/swift,JGiola/swift,harlanhaskins/swift,parkera/swift,gribozavr/swift,gribozavr/swift,jmgc/swift,karwa/swift,jmgc/swift,milseman/swift,sschiau/swift,aschwaighofer/swift,tjw/swift,xedin/swift,OscarSwanros/swift,xedin/swift,stephentyrone/swift,benlangmuir/swift,swiftix/swift,jmgc/swift,gribozavr/swift,natecook1000/swift,allevato/swift,deyton/swift,alblue/swift,apple/swift,alblue/swift,return/swift,xedin/swift,ahoppen/swift,karwa/swift,aschwaighofer/swift,zisko/swift,karwa/swift,lorentey/swift,aschwaighofer/swift,natecook1000/swift,tkremenek/swift,nathawes/swift,harlanhaskins/swift,glessard/swift,aschwaighofer/swift,devincoughlin/swift,parkera/swift,devincoughlin/swift,xedin/swift,allevato/swift,ahoppen/swift,sschiau/swift,rudkx/swift,gregomni/swift,hooman/swift,glessard/swift,milseman/swift,ahoppen/swift,OscarSwanros/swift,shahmishal/swift,gribozavr/swift,airspeedswift/swift,nathawes/swift,stephentyrone/swift,amraboelela/swift,JGiola/swift,aschwaighofer/swift,ahoppen/swift,danielmartin/swift,uasys/swift,natecook1000/swift,roambotics/swift,zisko/swift,zisko/swift,tjw/swift,alblue/swift,tjw/swift,airspeedswift/swift,airspeedswift/swift,zisko/swift,allevato/swift,karwa/swift,lorentey/swift,danielmartin/swift,xwu/swift,milseman/swift,shajrawi/swift,danielmartin/swift,ahoppen/swift,benlangmuir/swift,gregomni/swift,practicalswift/swift,allevato/swift,swiftix/swift,deyton/swift,uasys/swift,allevato/swift,xwu/swift,benlangmuir/swift,return/swift,rudkx/swift,devincoughlin/swift