瀏覽代碼

Merge topic 'ninja-implib-byproduct'

35fb0bb8 Ninja: Make import libraries BYPRODUCTs instead of regular OUTPUTs
Brad King 10 年之前
父節點
當前提交
8697dca7f1
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      Source/cmNinjaNormalTargetGenerator.cxx

+ 3 - 2
Source/cmNinjaNormalTargetGenerator.cxx

@@ -547,6 +547,8 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
       }
       }
     }
     }
 
 
+  cmNinjaDeps byproducts;
+
   if (!this->TargetNameImport.empty())
   if (!this->TargetNameImport.empty())
     {
     {
     const std::string impLibPath = localGen.ConvertToOutputFormat(
     const std::string impLibPath = localGen.ConvertToOutputFormat(
@@ -556,7 +558,7 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
     EnsureParentDirectoryExists(impLibPath);
     EnsureParentDirectoryExists(impLibPath);
     if(target.HasImportLibrary())
     if(target.HasImportLibrary())
       {
       {
-      outputs.push_back(targetOutputImplib);
+      byproducts.push_back(targetOutputImplib);
       }
       }
     }
     }
 
 
@@ -602,7 +604,6 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
     &postBuildCmdLines
     &postBuildCmdLines
   };
   };
 
 
-  cmNinjaDeps byproducts;
   for (unsigned i = 0; i != 3; ++i)
   for (unsigned i = 0; i != 3; ++i)
     {
     {
     for (std::vector<cmCustomCommand>::const_iterator
     for (std::vector<cmCustomCommand>::const_iterator