diff --git a/qbs/imports/QtcProduct.qbs b/qbs/imports/QtcProduct.qbs index 52e63f1f6f3..d89dbd1635a 100644 --- a/qbs/imports/QtcProduct.qbs +++ b/qbs/imports/QtcProduct.qbs @@ -22,7 +22,7 @@ Product { Properties { condition: Utilities.versionCompare(Qt.core.version, "5.7") < 0 - cpp.minimumMacosVersion: "10.8" + cpp.minimumMacosVersion: project.minimumMacosVersion } cpp.cxxLanguageVersion: "c++14" diff --git a/qtcreator.qbs b/qtcreator.qbs index f28ba82a1aa..3394719939e 100644 --- a/qtcreator.qbs +++ b/qtcreator.qbs @@ -5,6 +5,7 @@ import qbs.FileInfo Project { name: "Qt Creator" minimumQbsVersion: "1.6.0" + property string minimumMacosVersion: "10.8" property bool withAutotests: qbs.buildVariant === "debug" property path ide_source_tree: path property pathList additionalPlugins: [] diff --git a/src/shared/json/json.qbs b/src/shared/json/json.qbs index 3587d307afc..df11ab293a7 100644 --- a/src/shared/json/json.qbs +++ b/src/shared/json/json.qbs @@ -4,6 +4,7 @@ StaticLibrary { name: "qtcjson" Depends { name: "cpp" } cpp.cxxLanguageVersion: "c++11" + cpp.minimumMacosVersion: project.minimumMacosVersion files: [ "json.cpp", "json.h", diff --git a/src/tools/valgrindfake/valgrindfake.qbs b/src/tools/valgrindfake/valgrindfake.qbs index e71fba1358c..7348b1d8aff 100644 --- a/src/tools/valgrindfake/valgrindfake.qbs +++ b/src/tools/valgrindfake/valgrindfake.qbs @@ -1,4 +1,5 @@ import qbs +import qbs.Utilities CppApplication { name: "valgrind-fake" @@ -7,6 +8,12 @@ CppApplication { Depends { name: "Qt"; submodules: ["network", "xml"]; } Depends { name: "qtc" } cpp.cxxLanguageVersion: "c++11" + + Properties { + condition: Utilities.versionCompare(Qt.core.version, "5.7") < 0 + cpp.minimumMacosVersion: project.minimumMacosVersion + } + files: [ "main.cpp", "outputgenerator.h", "outputgenerator.cpp"