summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2013-06-17 15:25:39 (GMT)
committerBrad King <brad.king@kitware.com>2013-06-25 12:51:20 (GMT)
commit4a6397a70c2b467b1285be4c0bae7533eb16f5e0 (patch)
tree2118c83922029a6bab7745827e6dcdc3ed9db9d0
parent6dbd4a5f17db42d12cdddcdacf5f9bd4d67951d6 (diff)
downloadCMake-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.
-rw-r--r--Source/cmGlobalNinjaGenerator.cxx3
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()),