cmGeneratorTarget: Port handleSystemIncludesDep to cmGeneratorTarget.

This commit is contained in:
Stephen Kelly 2015-10-10 11:40:50 +02:00
parent f7acd74215
commit 5fd2f43f64
1 changed files with 5 additions and 4 deletions

View File

@ -510,7 +510,8 @@ cmGeneratorTarget::GetSourceDepends(cmSourceFile const* sf) const
return 0; return 0;
} }
static void handleSystemIncludesDep(cmMakefile *mf, cmTarget const* depTgt, static void handleSystemIncludesDep(cmMakefile *mf,
cmGeneratorTarget const* depTgt,
const std::string& config, const std::string& config,
cmGeneratorTarget const* headTarget, cmGeneratorTarget const* headTarget,
cmGeneratorExpressionDAGChecker *dagChecker, cmGeneratorExpressionDAGChecker *dagChecker,
@ -524,7 +525,7 @@ static void handleSystemIncludesDep(cmMakefile *mf, cmTarget const* depTgt,
cmSystemTools::ExpandListArgument(ge.Parse(dirs) cmSystemTools::ExpandListArgument(ge.Parse(dirs)
->Evaluate(mf, ->Evaluate(mf,
config, false, headTarget->Target, config, false, headTarget->Target,
depTgt, dagChecker), result); depTgt->Target, dagChecker), result);
} }
if (!depTgt->IsImported() || excludeImported) if (!depTgt->IsImported() || excludeImported)
{ {
@ -538,7 +539,7 @@ static void handleSystemIncludesDep(cmMakefile *mf, cmTarget const* depTgt,
cmSystemTools::ExpandListArgument(ge.Parse(dirs) cmSystemTools::ExpandListArgument(ge.Parse(dirs)
->Evaluate(mf, ->Evaluate(mf,
config, false, headTarget->Target, config, false, headTarget->Target,
depTgt, dagChecker), result); depTgt->Target, dagChecker), result);
} }
} }
@ -888,7 +889,7 @@ bool cmGeneratorTarget::IsSystemIncludeDirectory(const std::string& dir,
for(std::vector<cmGeneratorTarget const*>::const_iterator for(std::vector<cmGeneratorTarget const*>::const_iterator
li = deps.begin(), le = deps.end(); li != le; ++li) li = deps.begin(), le = deps.end(); li != le; ++li)
{ {
handleSystemIncludesDep(this->Makefile, (*li)->Target, config, this, handleSystemIncludesDep(this->Makefile, *li, config, this,
&dagChecker, result, excludeImported); &dagChecker, result, excludeImported);
} }