summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-10-04 19:47:15 (GMT)
committerBrad King <brad.king@kitware.com>2023-10-05 17:16:24 (GMT)
commit68fca3eafeaf244c37843f186bd4af8a314df08c (patch)
tree6d71e6a0c4a3a4a729ecdfc273e3ffe76710a79b /Source/cmGeneratorTarget.h
parentda36e0638b1adfdbdb75fb0228268b30f5832544 (diff)
downloadCMake-68fca3eafeaf244c37843f186bd4af8a314df08c.zip
CMake-68fca3eafeaf244c37843f186bd4af8a314df08c.tar.gz
CMake-68fca3eafeaf244c37843f186bd4af8a314df08c.tar.bz2
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.
Diffstat (limited to 'Source/cmGeneratorTarget.h')
-rw-r--r--Source/cmGeneratorTarget.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.h b/Source/cmGeneratorTarget.h
index 6bdb7ff..bf49914 100644
--- a/Source/cmGeneratorTarget.h
+++ b/Source/cmGeneratorTarget.h
@@ -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;