From 2c6fc569af56e9c0072dc64587ffe7afec0a514d Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Sat, 14 Jan 2023 16:11:00 +0100 Subject: [PATCH] Preserve backwards compatibility --- include/project_parser.hpp | 4 +-- src/cmake_generator.cpp | 7 ++--- src/project_parser.cpp | 64 +++++++++++++++++++++++--------------- 3 files changed, 44 insertions(+), 31 deletions(-) diff --git a/include/project_parser.hpp b/include/project_parser.hpp index d504e98..1887029 100644 --- a/include/project_parser.hpp +++ b/include/project_parser.hpp @@ -14,7 +14,7 @@ using Condition = tsl::ordered_map; using ConditionVector = Condition>; -struct Setting { +struct Variable { std::string name; std::string comment; mpark::variant val; @@ -185,7 +185,7 @@ struct Project { Condition cmake_after; ConditionVector include_before; ConditionVector include_after; - std::vector settings; + std::vector variables; std::vector