summaryrefslogtreecommitdiffstats
path: root/Source/cmComputeTargetDepends.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-08-06 21:48:49 (GMT)
committerBrad King <brad.king@kitware.com>2008-08-06 21:48:49 (GMT)
commit37a009b7f704e26e2a76485d74c3ee5612f208d7 (patch)
treebf2f994c74561fa87fb653f5d06e8c2f381668b6 /Source/cmComputeTargetDepends.cxx
parent578e83501becca2aa0b2ff38380e8e2dc7508f7d (diff)
downloadCMake-37a009b7f704e26e2a76485d74c3ee5612f208d7.zip
CMake-37a009b7f704e26e2a76485d74c3ee5612f208d7.tar.gz
CMake-37a009b7f704e26e2a76485d74c3ee5612f208d7.tar.bz2
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.
Diffstat (limited to 'Source/cmComputeTargetDepends.cxx')
-rw-r--r--Source/cmComputeTargetDepends.cxx4
1 files 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";
}
}
}