cmGeneratorTarget: Track explicitly enabled language standard levels

Previously we only tracked when an explicit setting requires the
standard level to be higher than the compiler's default.
This commit is contained in:
Brad King
2023-10-04 15:47:15 -04:00
parent da36e0638b
commit 68fca3eafe
2 changed files with 47 additions and 1 deletions

View File

@@ -21,6 +21,7 @@
#include "cmLinkItem.h"
#include "cmListFileCache.h"
#include "cmPolicies.h"
#include "cmStandardLevel.h"
#include "cmStateTypes.h"
#include "cmValue.h"
@@ -1242,6 +1243,13 @@ private:
std::map<std::string, BTs<std::string>> LanguageStandardMap;
cm::optional<cmStandardLevel> GetExplicitStandardLevel(
std::string const& lang, std::string const& config) const;
void UpdateExplicitStandardLevel(std::string const& lang,
std::string const& config,
cmStandardLevel level);
std::map<std::string, cmStandardLevel> ExplicitStandardLevel;
cmValue GetPropertyWithPairedLanguageSupport(std::string const& lang,
const char* suffix) const;