diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2013-06-17 15:25:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-06-25 12:51:20 (GMT) |
commit | 4a6397a70c2b467b1285be4c0bae7533eb16f5e0 (patch) | |
tree | 2118c83922029a6bab7745827e6dcdc3ed9db9d0 /Source/cmGlobalNinjaGenerator.cxx | |
parent | 6dbd4a5f17db42d12cdddcdacf5f9bd4d67951d6 (diff) | |
download | CMake-4a6397a70c2b467b1285be4c0bae7533eb16f5e0.zip CMake-4a6397a70c2b467b1285be4c0bae7533eb16f5e0.tar.gz CMake-4a6397a70c2b467b1285be4c0bae7533eb16f5e0.tar.bz2 |
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.
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r-- | Source/cmGlobalNinjaGenerator.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx index fff972e..e2c0e18 100644 --- a/Source/cmGlobalNinjaGenerator.cxx +++ b/Source/cmGlobalNinjaGenerator.cxx @@ -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()), |