Skip to content

Commit

Permalink
[fe][cppan] Take project name from the file if available.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin committed Feb 6, 2024
1 parent f355154 commit d21620b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sw/driver/frontend/cppan/cppan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,9 @@ static std::vector<NativeCompiledTarget *> cppan_load1(Build &b, const yaml &roo
}
else
{
auto &t = add_project(root, root_name, version);
String name;
YAML_EXTRACT(name, String);
auto &t = add_project(root, name.empty() ? root_name : name, version);
targets.push_back(&t);
}

Expand Down

0 comments on commit d21620b

Please sign in to comment.