summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-02-23 18:37:35 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-02-23 18:37:35 (GMT)
commit549b77034e4a927a5f5775b0d6d2ef8026b14de0 (patch)
tree79068987e9f214e880a81017422a5aec9e2d5319 /Source/cmGlobalGenerator.cxx
parent3d617b48aafbef2cbfa078a52fa8ffbceae14286 (diff)
downloadCMake-549b77034e4a927a5f5775b0d6d2ef8026b14de0.zip
CMake-549b77034e4a927a5f5775b0d6d2ef8026b14de0.tar.gz
CMake-549b77034e4a927a5f5775b0d6d2ef8026b14de0.tar.bz2
COMP: Fixes for visual studio
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 25ba47d..c8f07ea 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -692,7 +692,11 @@ void cmGlobalGenerator::Generate()
for (i = 0; i < m_LocalGenerators.size(); ++i)
{
cmTargets* targets = &(m_LocalGenerators[i]->GetMakefile()->GetTargets());
- targets->insert(globalTargets.begin(), globalTargets.end());
+ cmTargets::iterator tit;
+ for ( tit = globalTargets.begin(); tit != globalTargets.end(); ++ tit )
+ {
+ targets[tit->first] = tit->second;
+ }
m_LocalGenerators[i]->Generate();
m_LocalGenerators[i]->GenerateInstallRules();
m_LocalGenerators[i]->GenerateTestFiles();