summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-06-16 08:53:00 -0400
committerBrad King <brad.king@kitware.com>2014-06-16 08:53:00 -0400
commit15c6d352efa66b85a2cde06b7ccb1ef2b9458439 (patch)
treef65e4b6e54fac8b47e6d8ec5d7c10ad405d8d07c
parenta03dbf10430a34bf9cd08f70ba5225423bcd25f7 (diff)
parent04377f1b318020ef0c9fef099842f26290d19324 (diff)
downloadcmake-15c6d352efa66b85a2cde06b7ccb1ef2b9458439.tar.gz
Merge branch 'ninja-avoid-double-phony' into release
-rw-r--r--Source/cmGlobalNinjaGenerator.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx
index 731bc00c05..60643acc42 100644
--- a/Source/cmGlobalNinjaGenerator.cxx
+++ b/Source/cmGlobalNinjaGenerator.cxx
@@ -972,7 +972,16 @@ void cmGlobalNinjaGenerator::WriteUnknownExplicitDependencies(std::ostream& os)
{
knownDependencies.insert( ng->ConvertToNinjaPath( j->c_str() ) );
}
+ //get list files which are implicit dependencies as well and will be phony
+ //for rebuild manifest
+ std::vector<std::string> const& lf = (*i)->GetMakefile()->GetListFiles();
+ typedef std::vector<std::string>::const_iterator vect_it;
+ for(vect_it j = lf.begin(); j != lf.end(); ++j)
+ {
+ knownDependencies.insert( ng->ConvertToNinjaPath( j->c_str() ) );
+ }
}
+ knownDependencies.insert( "CMakeCache.txt" );
for(std::vector<cmGeneratorExpressionEvaluationFile*>::const_iterator
li = this->EvaluationFiles.begin();