More 10.14 fixes also make the version check in cmakelists actually work

This commit is contained in:
Nadia Holmquist Pedersen
2021-04-25 03:51:04 +02:00
parent e0cb998591
commit bc4a156a4d
3 changed files with 3 additions and 119 deletions

View File

@ -136,7 +136,7 @@ if (APPLE)
set_source_files_properties("${CMAKE_SOURCE_DIR}/melon.icns" PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
# Qt 6 requires macOS 10.15 if building on 10.15 or greater
if(CMAKE_SYSTEM_VERSION VERSION_GREATER "10.14")
if(CMAKE_SYSTEM_VERSION VERSION_GREATER 18.5.0)
if (USE_QT6)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "Minimum OS X deployment version" FORCE)
endif()