mirror of
https://github.com/darlinghq/darling.git
synced 2025-02-21 10:20:32 +00:00
Update CMAKE_OSX_DEPLOYMENT_TARGET To 11.0
A bit of a backstory: macOS Big Sur was the first version of macOS to increment it's major version number from 10 to 11. Since Apple doesn't want to break old applications that assume the "10.x" version scheme, they applied a small hack in the xnu kernel to have older applications read off of the SystemVersionCompat.plist instead. So instead of seeing "11.6", the app would see "10.16" instead. Since the macOS deployment target was not updated to BIg Sur's version, sw_vers would report "10.16". Fixes #1334
This commit is contained in:
parent
4592bb2e11
commit
d3a244ccf7
@ -39,7 +39,7 @@ SET(CMAKE_SKIP_RPATH TRUE)
|
||||
|
||||
# technically ignored by CMake when building on non-Apple platforms, but it's already a standard variable for the
|
||||
# SDK deployment target, so we'll just use it and then add it to the compiler flags manually
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.15 CACHE STRING "The version of macOS we're simulating")
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET 11.0 CACHE STRING "The version of macOS we're simulating")
|
||||
|
||||
project(darling)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user