Skip to content

Commit fb16cc3

Browse files
committed
Fix a regression with invalid names being generated in vcpkg.json
1 parent 4770387 commit fb16cc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmake_generator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ void generate_cmake(const char *path, const parser::Project *parent_project) {
689689

690690
ofs << " ],\n";
691691
ofs << " \"description\": \"" << escape(project.project_description) << "\",\n";
692-
ofs << " \"name\": \"" << escape(project.project_name) << "\",\n";
692+
ofs << " \"name\": \"" << escape(vcpkg_escape_identifier(project.project_name)) << "\",\n";
693693
ofs << R"( "version-string": "")" << '\n';
694694
ofs << "}\n";
695695
}

0 commit comments

Comments
 (0)