MacOS: Update Min Requirement to 10.15.
A few weeks ago we enabled the Metal back-end for the viewport. Due to metal, master is only able to build on MacOS 10.15 and above. The previous minimum requirement is MacOS 10.13. It was already planned to bump to a higher version for Blender 3.6. After a short discussion via bf-committers it was decided that it is fine to bump it for 3.5 release. This patch cleans up the CMake files and update the minimum requirement. With this patch the next deprecations will be listsed. - `NSOpenGLView`, `NSOpenGLContext` is deprecated. (replaced by metal) - `NSStringPboardType` is replaced by `NSPasteboardTypeString` - `NSTIFFPboardType` is replaced by `NSPasteboardTypeTIFF` - `NSFilenamesPboardType` should be replaved by multiple pasteboard items with `NSPasteboardTypeFileURL` instead. - `NSUserNotification` should be replaced with UserNotifications.frameworks API Deprecations will be handled in separate tasks and commits. OpenGL won't be fixed at this moment, as it will be phased out in the future. NSStringPboardType, NSTiffPboardType & NSFilenamesPboardType will be provided in a single patch. NSUserNotification will also be provided in its own patch. Reviewed By: brecht, sergey Differential Revision: https://developer.blender.org/D16953
This commit is contained in:
parent
387fc9b40b
commit
597aecc016
Notes:
blender-bot
2023-02-14 06:42:54 +01:00
Referenced by commit aea26830dc
, Cleanup: use std::get instead of std::get_if
|
@ -605,10 +605,6 @@ else()
|
|||
set(WITH_METAL_BACKEND OFF)
|
||||
endif()
|
||||
|
||||
if(WITH_METAL_BACKEND)
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "Minimum OS X deployment version" FORCE)
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
getDefaultWindowsPrefixBase(CMAKE_GENERIC_PROGRAM_FILES)
|
||||
set(CPACK_INSTALL_PREFIX ${CMAKE_GENERIC_PROGRAM_FILES}/${})
|
||||
|
|
|
@ -155,8 +155,8 @@ if("${CMAKE_OSX_ARCHITECTURES}" STREQUAL "arm64")
|
|||
# M1 chips run Big Sur onwards.
|
||||
set(OSX_MIN_DEPLOYMENT_TARGET 11.00)
|
||||
else()
|
||||
# 10.13 is our min. target, if you use higher sdk, weak linking happens
|
||||
set(OSX_MIN_DEPLOYMENT_TARGET 10.13)
|
||||
# 10.15 is our min. target, if you use higher sdk, weak linking happens
|
||||
set(OSX_MIN_DEPLOYMENT_TARGET 10.15)
|
||||
endif()
|
||||
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET "${OSX_MIN_DEPLOYMENT_TARGET}" CACHE STRING "" FORCE)
|
||||
|
|
Loading…
Reference in New Issue