Start building with C++20 since Qt 6.0

This commit is contained in:
Roman Telezhynskyi 2023-02-28 10:45:58 +02:00
parent dce2061dc3
commit c89544fe08

View File

@ -138,14 +138,12 @@ Module {
cpp.visibility: "minimal" cpp.visibility: "minimal"
Properties { cpp.cxxLanguageVersion: {
condition: Qt.core.versionMajor >= 5 && Qt.core.versionMinor < 12 if (Qt.core.versionMajor >= 6) // Start building with C++20 since Qt 6.0
cpp.cxxLanguageVersion: "c++11" return "c++20";
} else if(Qt.core.versionMajor >= 5 && Qt.core.versionMinor >= 12) // Since Qt 5.12 available support for C++17
// Since Qt 5.12 available support for C++17 return "c++17";
Properties { return "c++11";
condition: Qt.core.versionMajor >= 5 && Qt.core.versionMinor >= 12
cpp.cxxLanguageVersion: "c++17"
} }
readonly property string minimumMacosVersion: { readonly property string minimumMacosVersion: {