Blender Git Loki

Git Commits -> Revision d405d7c

Revision d405d7c by Ankit Meel (tmp-macminver)
May 20, 2021, 10:17 (GMT)
macOS: set minimum deployment target correctly

Fix T88419

`CMAKE_OSX_DEPLOYMENT_TARGET` is now always the same as
`OSX_MIN_DEPLOYMENT_TARGET`. I don't know the historical reason of
why they were allowed to be different.

`MACOSX_DEPLOYMENT_TARGET` has been moved to platform_apple_xcode
because it's helpful to deduce `CMAKE_OSX_DEPLOYMENT_TARGET` and
platform_apple is included after platform_apple_xcode. Although it seems
useless now that we're explicitly setting `CMAKE_OSX_DEPLOYMENT_TARGET`.
Remove it ? `man clang` says that `MACOSX_DEPLOYMENT_TARGET` is used
if `mmacosx-version-min` is not present.

Docs suggest that `CMAKE_OSX_DEPLOYMENT_TARGET` should be set before
project call. Should we do that, like in D10838, using
`blender_project_hack_pre` ?

Maniphest Tasks: T88419

Differential Revision: https://developer.blender.org/D11323

Commit Details:

Full Hash: d405d7c87e3e6c65c33773ee07834f39c0976762
Parent Commit: 5e67dcf
Lines Changed: +3, -14

2 Modified Paths:

/build_files/cmake/platform/platform_apple.cmake (+0, -6) (Diff)
/build_files/cmake/platform/platform_apple_xcode.cmake (+3, -8) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021