From 37a009b7f704e26e2a76485d74c3ee5612f208d7 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 6 Aug 2008 17:48:49 -0400 Subject: 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. --- Source/cmComputeTargetDepends.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmComputeTargetDepends.cxx b/Source/cmComputeTargetDepends.cxx index d13a6db..19d99da 100644 --- a/Source/cmComputeTargetDepends.cxx +++ b/Source/cmComputeTargetDepends.cxx @@ -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"; } } } -- cgit v0.12