diff --git a/Source/cmGlobalGenerator.h b/Source/cmGlobalGenerator.h index d3e3f3073..66a35a804 100644 --- a/Source/cmGlobalGenerator.h +++ b/Source/cmGlobalGenerator.h @@ -175,8 +175,7 @@ public: configuration. This is valid during generation only. */ cmTargetManifest const& GetTargetManifest() { return this->TargetManifest; } - void AddTarget(cmTargets::value_type &v) { - this->TotalTargets.insert(std::pair(v.first,&v.second));}; + void AddTarget(cmTargets::value_type &v) { this->TotalTargets[v.first] = &v.second;}; /** Support for multiple custom command outputs. */ virtual void CheckMultipleOutputs(cmMakefile* mf, bool verbose);