macOS: Test OSX_COMPATIBILITY_VERSION and OSX_CURRENT_VERSION properties

Issue: #17652
Status Job ID Name Coverage
  External
passed cdash

passed cmake-moonshade-osx-debug-ninja

00:21:35

passed cmake-moonshade-osx-release-makefiles

00:13:06

passed ghostflow-check-master

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager