Ninja: Track configured files so we can regenerate them.
Unlike the Makefile generator the ninja generator did not tack any of its output files, so if they are deleted the generator would not run.
This commit is contained in:
parent
6dbd4a5f17
commit
4a6397a70c
|
@ -961,6 +961,9 @@ void cmGlobalNinjaGenerator::WriteTargetRebuildManifest(std::ostream& os)
|
|||
this->LocalGenerators.begin(); i != this->LocalGenerators.end(); ++i) {
|
||||
const std::vector<std::string>& lf = (*i)->GetMakefile()->GetListFiles();
|
||||
implicitDeps.insert(implicitDeps.end(), lf.begin(), lf.end());
|
||||
|
||||
const std::vector<std::string>& of = (*i)->GetMakefile()->GetOutputFiles();
|
||||
implicitDeps.insert(implicitDeps.end(), of.begin(), of.end());
|
||||
}
|
||||
std::sort(implicitDeps.begin(), implicitDeps.end());
|
||||
implicitDeps.erase(std::unique(implicitDeps.begin(), implicitDeps.end()),
|
||||
|
|
Loading…
Reference in New Issue