Fix build of xcode generator.
Merge topic 'target-COMPILE_OPTIONS' into next

e897f8d Fix build of xcode generator.
Only run the GNU compiler tests when using that compiler.
Merge topic 'target-COMPILE_OPTIONS' into next

632912c Only run the GNU compiler tests when using that compiler.