cmake: Fix Metal detection on macOS/iOS.

Apparently the "-x objective-c" made it down to the linker, who then treats
the .o file as Objective-C source code.  Apparently the -ObjC argument does
the same thing but gets ignored by the linker.

Fixes Bugzilla #4988.

--HG--
extra : histedit_source : d48eaccf4e2a8abbe73ba5bfda660cec9cc49803
1 file changed