فهرست منبع

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.
Brad King 17 سال پیش
والد
کامیت
37a009b7f7
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      Source/cmComputeTargetDepends.cxx

+ 2 - 2
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";
         }
       }
     }