I'd like so to see (like tvOS, iOS, watchOS) Macos (maybe renamed macOS btw) have a version settings.
I need to ensure that my packages are upward compatible with a specific minimum macOS version. Today I handle it by myself via the options mechanisms but then it s also passed to non-macOS packages, thus I have to remove it.
The sole usage of this version would be to add compiler flags to some generators and add the CMAKE_OSX_DEPLOYMENT_TARGET variable to CMake generator see CMake's doc on the subject
Specifies the version of OS X you are targeting. You must target your compile for the oldest version of OS X on which you want to run the executable. In addition, you should install and use the cross-development SDK for that version of OS X. For more information, see SDK Compatibility Guide.
Here is an example of how I do it now via the options mechanism
Hi,
I'd like so to see (like tvOS, iOS, watchOS) Macos (maybe renamed macOS btw) have a version settings. I need to ensure that my packages are upward compatible with a specific minimum macOS version. Today I handle it by myself via the options mechanisms but then it s also passed to non-macOS packages, thus I have to remove it.
The sole usage of this version would be to add compiler flags to some generators and add the
CMAKE_OSX_DEPLOYMENT_TARGET
variable to CMake generator see CMake's doc on the subjectfrom Apple's Developer docs
-mmacosx-version-min version
Here is an example of how I do it now via the
options
mechanism