Exclude Ninja and Xcode from the CMP0021 test

They do not behave the same as the makefile generator with
relative paths.
Merge topic 'fix-OLD-CMP0021' into next

892b9c5 Exclude Ninja and Xcode from the CMP0021 test