Fix tabbing in vcpkg.json for packages that have features

main
cursey 3 years ago
parent 3201fd052e
commit 61dfb0eb60
No known key found for this signature in database
GPG Key ID: A6A7163A1B8FD42C

@ -618,8 +618,8 @@ void generate_cmake(const char *path, const parser::Project *parent_project) {
ofs << " \"" << package.name << '\"'; ofs << " \"" << package.name << '\"';
} else { } else {
ofs << " {\n"; ofs << " {\n";
ofs << " \"name\": \"" << package.name << "\",\n"; ofs << " \"name\": \"" << package.name << "\",\n";
ofs << " \"features\": ["; ofs << " \"features\": [";
for (size_t j = 0; j < package.features.size(); j++) { for (size_t j = 0; j < package.features.size(); j++) {
const auto &feature = package.features[j]; const auto &feature = package.features[j];
ofs << '\"' << feature << '\"'; ofs << '\"' << feature << '\"';

Loading…
Cancel
Save