From f02ccc230995234491235023b4ee2984c4b4f5bd Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Sun, 12 Dec 2021 20:11:20 +0100 Subject: [PATCH] Refactor fetch-content to vector --- include/project_parser.hpp | 7 ++++++- src/cmake_generator.cpp | 28 ++++++---------------------- src/project_parser.cpp | 27 +++++++++++++++++++++++++-- 3 files changed, 37 insertions(+), 25 deletions(-) diff --git a/include/project_parser.hpp b/include/project_parser.hpp index 2886b5a..f065ccb 100644 --- a/include/project_parser.hpp +++ b/include/project_parser.hpp @@ -119,6 +119,11 @@ struct Subdir { ConditionVector include_after; }; +struct Content { + std::string name; + tsl::ordered_map arguments; +}; + struct Project { // This is the CMake version required to use all cmkr versions. std::string cmake_version = "3.15"; @@ -145,7 +150,7 @@ struct Project { std::vector