Start building with C++20 since Qt 6.0
This commit is contained in:
parent
dce2061dc3
commit
c89544fe08
|
@ -138,14 +138,12 @@ Module {
|
|||
|
||||
cpp.visibility: "minimal"
|
||||
|
||||
Properties {
|
||||
condition: Qt.core.versionMajor >= 5 && Qt.core.versionMinor < 12
|
||||
cpp.cxxLanguageVersion: "c++11"
|
||||
}
|
||||
// Since Qt 5.12 available support for C++17
|
||||
Properties {
|
||||
condition: Qt.core.versionMajor >= 5 && Qt.core.versionMinor >= 12
|
||||
cpp.cxxLanguageVersion: "c++17"
|
||||
cpp.cxxLanguageVersion: {
|
||||
if (Qt.core.versionMajor >= 6) // Start building with C++20 since Qt 6.0
|
||||
return "c++20";
|
||||
else if(Qt.core.versionMajor >= 5 && Qt.core.versionMinor >= 12) // Since Qt 5.12 available support for C++17
|
||||
return "c++17";
|
||||
return "c++11";
|
||||
}
|
||||
|
||||
readonly property string minimumMacosVersion: {
|
||||
|
|
Loading…
Reference in New Issue
Block a user