ENH: Improve readability of circular depends error
When reporting the dependencies in a strongly connected component quote the target names to make the message more readable no matter the target name.
This commit is contained in:
parent
578e83501b
commit
37a009b7f7
@ -365,7 +365,7 @@ cmComputeTargetDepends
|
||||
cmTarget* depender = this->Targets[i];
|
||||
|
||||
// Describe the depender.
|
||||
e << " " << depender->GetName() << " of type "
|
||||
e << " \"" << depender->GetName() << "\" of type "
|
||||
<< cmTarget::TargetTypeNames[depender->GetType()] << "\n";
|
||||
|
||||
// List its dependencies that are inside the component.
|
||||
@ -376,7 +376,7 @@ cmComputeTargetDepends
|
||||
if(cmap[j] == c)
|
||||
{
|
||||
cmTarget* dependee = this->Targets[j];
|
||||
e << " depends on " << dependee->GetName() << "\n";
|
||||
e << " depends on \"" << dependee->GetName() << "\"\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user