mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user