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