mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-19 21:50:39 -06:00
Merge topic 'ninja-implib-byproduct'
35fb0bb8 Ninja: Make import libraries BYPRODUCTs instead of regular OUTPUTs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user