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:
0# Darwin versions:
1# 6.x == Mac OSX 10.2 (Jaguar)
2# 7.x == Mac OSX 10.3 (Panther)
3# 8.x == Mac OSX 10.4 (Tiger)
4# 9.x == Mac OSX 10.5 (Leopard)
5# 10.x == Mac OSX 10.6 (Snow Leopard)
6# 11.x == Mac OSX 10.7 (Lion)
7# 12.x == Mac OSX 10.8 (Mountain Lion)
8string(REGEX REPLACE "^([0-9]+)\\.([0-9]+).*$" "\\1" DARWIN_MAJOR_VERSION "${CMAKE_SYSTEM_VERSION}")
9string(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