Where/how does CMake translate this to OSX_MIN_VERSION?
#30465 (comment):
... the CMAKE_SYSTEM_VERSION value is used to define DARWIN_MAJOR_VERSION and DARWIN_MINOR_VERSION...
It happens here:
# Darwin versions:
# 6.x == Mac OSX 10.2 (Jaguar)
# 7.x == Mac OSX 10.3 (Panther)
# 8.x == Mac OSX 10.4 (Tiger)
# 9.x == Mac OSX 10.5 (Leopard)
# 10.x == Mac OSX 10.6 (Snow Leopard)
# 11.x == Mac OSX 10.7 (Lion)
# 12.x == Mac OSX 10.8 (Mountain Lion)
string(REGEX REPLACE "^([0-9]+)\\.([0-9]+).*$" "\\1" DARWIN_MAJOR_VERSION "${CMAKE_SYSTEM_VERSION}")
string(REGEX REPLACE "^([0-9]+)\\.([0-9]+).*$" "\\2" DARWIN_MINOR_VERSION "${CMAKE_SYSTEM_VERSION}")
The chosen Darwin version 20.1 is associated) with macOS 11.0: https://github.com/bitcoin/bitcoin/blob/37992244e636e52e0c2baff1bc5f36e60d9c956f/depends/hosts/darwin.mk#L1