Fixed Mac OS X deployment target.

This commit is contained in:
Roman Telezhynskyi 2016-10-16 12:03:19 +03:00
parent 4abf456826
commit ed53077203
2 changed files with 24 additions and 2 deletions

View File

@ -200,7 +200,18 @@ unix{
# Some macx stuff
QMAKE_MAC_SDK = macosx
# Check which minimal OSX version supports current Qt version
# See page https://doc.qt.io/qt-5/supported-platforms-and-configurations.html
equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 6) {
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.8
} else {
equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 3) {
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7
} else {
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6
}
}
# Path to resources in app bundle
#RESOURCES_DIR = "Contents/Resources" defined in translation.pri
FRAMEWORKS_DIR = "Contents/Frameworks"

View File

@ -252,7 +252,18 @@ unix{
# Some macx stuff
QMAKE_MAC_SDK = macosx
# Check which minimal OSX version supports current Qt version
# See page https://doc.qt.io/qt-5/supported-platforms-and-configurations.html
equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 6) {
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.8
} else {
equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 3) {
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7
} else {
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6
}
}
# Path to resources in app bundle
#RESOURCES_DIR = "Contents/Resources" defined in translation.pri
FRAMEWORKS_DIR = "Contents/Frameworks"