Xcode: Fix CMP0042 test when using Xcode.
Merge topic 'rpath-default' into next

85edcb2 Xcode: Fix CMP0042 test when using Xcode.