mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Build: Update the minimum C++ standard to C++17
This commit is contained in:
parent
e9e39de069
commit
b3a4d54a72
90 changed files with 213 additions and 141 deletions
|
|
@ -236,7 +236,7 @@ bool Project::setCppVersionFromOldExporterSettings()
|
|||
}
|
||||
}
|
||||
|
||||
if (highestLanguageStandard >= 14)
|
||||
if (highestLanguageStandard >= 17)
|
||||
{
|
||||
cppStandardValue = highestLanguageStandard;
|
||||
return true;
|
||||
|
|
@ -247,8 +247,14 @@ bool Project::setCppVersionFromOldExporterSettings()
|
|||
|
||||
void Project::updateDeprecatedProjectSettings()
|
||||
{
|
||||
if (cppStandardValue.get().toString() == "11")
|
||||
cppStandardValue.resetToDefault();
|
||||
for (const auto& version : { "11", "14" })
|
||||
{
|
||||
if (cppStandardValue.get().toString() == version)
|
||||
{
|
||||
cppStandardValue.resetToDefault();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
for (ExporterIterator exporter (*this); exporter.next();)
|
||||
exporter->updateDeprecatedSettings();
|
||||
|
|
@ -299,7 +305,7 @@ void Project::initialiseProjectValues()
|
|||
useAppConfigValue.referTo (projectRoot, Ids::useAppConfig, getUndoManager(), true);
|
||||
addUsingNamespaceToJuceHeader.referTo (projectRoot, Ids::addUsingNamespaceToJuceHeader, getUndoManager(), true);
|
||||
|
||||
cppStandardValue.referTo (projectRoot, Ids::cppLanguageStandard, getUndoManager(), "14");
|
||||
cppStandardValue.referTo (projectRoot, Ids::cppLanguageStandard, getUndoManager(), "17");
|
||||
|
||||
headerSearchPathsValue.referTo (projectRoot, Ids::headerPath, getUndoManager());
|
||||
preprocessorDefsValue.referTo (projectRoot, Ids::defines, getUndoManager());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue