mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-04 04:03:22 +03:00
cmGlobalNinjaGenerator: Re-order logic in WriteCustomCommandBuild
Save explicit dependencies earlier.
This commit is contained in:
1 parent
ddc030f5ca
commit
8bac527b0c
1 file changed
+8
-8
@@ -319,6 +319,14 @@ void cmGlobalNinjaGenerator::WriteCustomCommandBuild(
|
||||
{
|
||||
this->AddCustomCommandRule();
|
||||
|
||||
if (this->ComputingUnknownDependencies) {
|
||||
// we need to track every dependency that comes in, since we are trying
|
||||
// to find dependencies that are side effects of build commands
|
||||
for (std::string const& dep : explicitDeps) {
|
||||
this->CombinedCustomCommandExplicitDependencies.insert(dep);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
cmNinjaBuild build("CUSTOM_COMMAND");
|
||||
build.Comment = comment;
|
||||
@@ -354,14 +362,6 @@ void cmGlobalNinjaGenerator::WriteCustomCommandBuild(
|
||||
this->WriteBuild(*this->GetImplFileStream(config), build);
|
||||
}
|
||||
}
|
||||
|
||||
if (this->ComputingUnknownDependencies) {
|
||||
// we need to track every dependency that comes in, since we are trying
|
||||
// to find dependencies that are side effects of build commands
|
||||
for (std::string const& dep : explicitDeps) {
|
||||
this->CombinedCustomCommandExplicitDependencies.insert(dep);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void cmGlobalNinjaGenerator::AddMacOSXContentRule()
|
||||
|
||||
Reference in new issue
Block a user