Fix bug with compilation on Windows 10 with Qt 6.

This commit is contained in:
Roman Telezhynskyi 2023-03-04 09:07:30 +02:00
parent f3e9918729
commit 2a9fcda3a6

View File

@ -142,6 +142,19 @@ Module {
return "c++11";
}
Properties {
condition: qbs.targetOS.contains("windows") && qbs.toolchain.contains("gcc") && !qbs.toolchain.contains("clang")
cpp.minimumWindowsVersion: {
if (Qt.core.versionMajor >= 6)
return "6.02"; // should be 10.0
if (Qt.core.versionMajor >= 5 && Qt.core.versionMinor >= 7)
return "6.00";
return "5.01";
}
}
readonly property string minimumMacosVersion: {
if (project.minimumMacosVersion !== undefined)
return project.minimumMacosVersion;