mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 09:53:01 +08:00
Improve BinaryParagraph::displayname()
This commit is contained in:
parent
f3d803addf
commit
4a6b43c15a
@ -89,14 +89,8 @@ namespace vcpkg
|
||||
|
||||
std::string BinaryParagraph::displayname() const
|
||||
{
|
||||
if (this->feature == "")
|
||||
{
|
||||
return this->spec.name() + "[core]:" + this->spec.triplet().to_string();
|
||||
}
|
||||
else
|
||||
{
|
||||
return this->spec.name() + "[" + this->feature + "]:" + this->spec.triplet().to_string();
|
||||
}
|
||||
const auto f = Strings::is_empty(this->feature) ? "core" : this->feature;
|
||||
return Strings::format("%s[%s]:%s", this->spec.name(), f, this->spec.triplet());
|
||||
}
|
||||
|
||||
std::string BinaryParagraph::dir() const { return this->spec.dir(); }
|
||||
|
Loading…
Reference in New Issue
Block a user