diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index 29f2bf2c8..476ef9229 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -604,9 +604,9 @@ bool cmGlobalGenerator::IsDependedOn(const char* project, l != targets.end(); l++) { cmTarget& target = l->second; - std::set::const_iterator i = + std::set::const_iterator pos = target.GetUtilities().find(targetIn->GetName()); - if(i != target.GetUtilities().end()) + if(pos != target.GetUtilities().end()) { return true; }