Macos version check fails

Hi,
I’m on MacOS Big Sur 11.7.6
in juce_AppleRemote_mac.mm line 53 there is this check:

            if (@available (macOS 12.0, *))
                return kIOMainPortDefault;

the check does not fail (but it should because 11.7.6 < 12 :blush: )

because of this there is a linking error.
I quick fixed it with

    MAC_OS_X_VERSION_MIN_REQUIRED=110000
    MAC_OS_X_VERSION_MAX_ALLOWED=110000

In my cmake file, but this is not ideal I guess.

Is this an mac problem or can this somehow adressed by JUCE?

Thanks,

equinox