Browse Source

COMP: Fix build on VS6.

Brad King 18 years ago
parent
commit
70f73adccb
1 changed files with 5 additions and 1 deletions
  1. 5 1
      Source/cmGlobalGenerator.cxx

+ 5 - 1
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);
+          }
         }
       }
     }