Merge topic 'ninja-implib-byproduct'
35fb0bb8
Ninja: Make import libraries BYPRODUCTs instead of regular OUTPUTs
This commit is contained in:
commit
8697dca7f1
|
@ -547,6 +547,8 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
|
|||
}
|
||||
}
|
||||
|
||||
cmNinjaDeps byproducts;
|
||||
|
||||
if (!this->TargetNameImport.empty())
|
||||
{
|
||||
const std::string impLibPath = localGen.ConvertToOutputFormat(
|
||||
|
@ -556,7 +558,7 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
|
|||
EnsureParentDirectoryExists(impLibPath);
|
||||
if(target.HasImportLibrary())
|
||||
{
|
||||
outputs.push_back(targetOutputImplib);
|
||||
byproducts.push_back(targetOutputImplib);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -602,7 +604,6 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
|
|||
&postBuildCmdLines
|
||||
};
|
||||
|
||||
cmNinjaDeps byproducts;
|
||||
for (unsigned i = 0; i != 3; ++i)
|
||||
{
|
||||
for (std::vector<cmCustomCommand>::const_iterator
|
||||
|
|
Loading…
Reference in New Issue