From 70f73adccb8f5d90596833b57fe097a410760068 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 24 Dec 2007 11:15:45 -0500 Subject: [PATCH] COMP: Fix build on VS6. --- Source/cmGlobalGenerator.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index 708bb8600..7bd98e61d 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -1291,7 +1291,11 @@ void cmGlobalGenerator::FillLocalGeneratorToTargetMap() // target may still be included if it is a dependency of a // non-excluded target. TargetDependSet const& tgtdeps = this->GetTargetDepends(target); - targetSet.insert(tgtdeps.begin(), tgtdeps.end()); + for(TargetDependSet::const_iterator ti = tgtdeps.begin(); + ti != tgtdeps.end(); ++ti) + { + targetSet.insert(*ti); + } } } }