浏览代码

ENH: better progress for any directory that is a project

Ken Martin 18 年之前
父节点
当前提交
a500b3da05
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      Source/cmGlobalUnixMakefileGenerator3.cxx

+ 4 - 2
Source/cmGlobalUnixMakefileGenerator3.cxx

@@ -917,8 +917,10 @@ unsigned long cmGlobalUnixMakefileGenerator3
 {
   unsigned long result = 0;
 
-  // for every target in the top level all
-  if (!lg->GetParent())
+  // if this is a project
+  if (!lg->GetParent() || 
+      strcmp(lg->GetMakefile()->GetProjectName(), 
+             lg->GetParent()->GetMakefile()->GetProjectName()))
     {
     // use the new project to target map   
     std::set<cmTarget*> &targets =