|
|
|
@ -33,6 +33,7 @@ static EnumType to_enum(const std::string &str, const std::string &help_name) {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// If the key is found, get strongly-typed value (throws on user-error)
|
|
|
|
|
template <typename T>
|
|
|
|
|
static void get_optional(const TomlBasicValue &v, const toml::key &ky, T &destination);
|
|
|
|
|
|
|
|
|
@ -249,6 +250,8 @@ CMake::CMake(const std::string &path, bool build) {
|
|
|
|
|
const auto &v = toml::find(toml, "vcpkg");
|
|
|
|
|
vcpkg.version = toml::find(v, "version").as_string();
|
|
|
|
|
vcpkg.packages = toml::find<decltype(vcpkg.packages)>(v, "packages");
|
|
|
|
|
get_optional(v, "overlay-ports", vcpkg.overlay_ports);
|
|
|
|
|
get_optional(v, "overlay-triplets", vcpkg.overlay_triplets);
|
|
|
|
|
|
|
|
|
|
// This allows the user to use a custom pmm version if desired
|
|
|
|
|
if (contents.count("pmm") == 0) {
|
|
|
|
|