瀏覽代碼

cmGeneratorTarget: Use the output directory to order cmTargets.

The output directory must be unique, but the source directory
of an add_subdirectory call may be re-used.
Stephen Kelly 12 年之前
父節點
當前提交
a60cd3d3c6
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Source/cmGeneratorTarget.cxx

+ 2 - 2
Source/cmGeneratorTarget.cxx

@@ -698,8 +698,8 @@ bool cmStrictTargetComparison::operator()(cmTarget *t1, cmTarget *t2) const
   int nameResult = strcmp(t1->GetName(), t2->GetName());
   if (nameResult == 0)
     {
-    return strcmp(t1->GetMakefile()->GetStartDirectory(),
-                  t2->GetMakefile()->GetStartDirectory()) < 0;
+    return strcmp(t1->GetMakefile()->GetStartOutputDirectory(),
+                  t2->GetMakefile()->GetStartOutputDirectory()) < 0;
     }
   return nameResult < 0;
 }