Fix a regression with invalid names being generated in vcpkg.json

main
Duncan Ogilvie 3 years ago
parent 47703871e1
commit fb16cc34b1

@ -689,7 +689,7 @@ void generate_cmake(const char *path, const parser::Project *parent_project) {
ofs << " ],\n";
ofs << " \"description\": \"" << escape(project.project_description) << "\",\n";
ofs << " \"name\": \"" << escape(project.project_name) << "\",\n";
ofs << " \"name\": \"" << escape(vcpkg_escape_identifier(project.project_name)) << "\",\n";
ofs << R"( "version-string": "")" << '\n';
ofs << "}\n";
}

Loading…
Cancel
Save