summaryrefslogtreecommitdiffstats
path: root/Source/cmCMakePresetsFile.h
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-10-16 20:19:11 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2020-10-22 15:24:39 (GMT)
commit64afabdbcb265acb53a9b8f8cb86465d31f2ca61 (patch)
treeca2616a38a2bf7c80d8635d7fd0f2957645a0a45 /Source/cmCMakePresetsFile.h
parent609122007dc074739b394d2f70f674bbccca6073 (diff)
downloadCMake-64afabdbcb265acb53a9b8f8cb86465d31f2ca61.zip
CMake-64afabdbcb265acb53a9b8f8cb86465d31f2ca61.tar.gz
CMake-64afabdbcb265acb53a9b8f8cb86465d31f2ca61.tar.bz2
CMakePresets.json: Split cmakeGeneratorConfig field
Make this field separate for both architecture and toolset. Allow architecture and toolset to be either strings or objects with value and strategy fields. Fixes: #21317
Diffstat (limited to 'Source/cmCMakePresetsFile.h')
-rw-r--r--Source/cmCMakePresetsFile.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/cmCMakePresetsFile.h b/Source/cmCMakePresetsFile.h
index 87797d7..f6b159a 100644
--- a/Source/cmCMakePresetsFile.h
+++ b/Source/cmCMakePresetsFile.h
@@ -12,10 +12,10 @@
class cmCMakePresetsFile
{
public:
- enum class CMakeGeneratorConfig
+ enum class ArchToolsetStrategy
{
- Default,
- Ignore,
+ Set,
+ External,
};
class CacheVariable
@@ -50,8 +50,9 @@ public:
std::string Description;
std::string Generator;
std::string Architecture;
+ cm::optional<ArchToolsetStrategy> ArchitectureStrategy;
std::string Toolset;
- cm::optional<CMakeGeneratorConfig> GeneratorConfig;
+ cm::optional<ArchToolsetStrategy> ToolsetStrategy;
std::string BinaryDir;
std::map<std::string, cm::optional<CacheVariable>> CacheVariables;