diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-23 16:26:41 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-24 07:19:56 (GMT) |
commit | 1eff421ad00bd26a22b5145fe2b175a300041dca (patch) | |
tree | 603ec65aca0a71ae519285ef9c238993669d0571 /Source/cmGlobalVisualStudio7Generator.cxx | |
parent | 94fd5a5af87adafbbf7f47d6d083b53c6bd3e941 (diff) | |
download | CMake-1eff421ad00bd26a22b5145fe2b175a300041dca.zip CMake-1eff421ad00bd26a22b5145fe2b175a300041dca.tar.gz CMake-1eff421ad00bd26a22b5145fe2b175a300041dca.tar.bz2 |
VS: Port loop to cmGeneratorTarget
Diffstat (limited to 'Source/cmGlobalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio7Generator.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx index 1909f21..bc831e5 100644 --- a/Source/cmGlobalVisualStudio7Generator.cxx +++ b/Source/cmGlobalVisualStudio7Generator.cxx @@ -441,7 +441,7 @@ void cmGlobalVisualStudio7Generator::WriteTargetsToSolution( for(OrderedTargetDependSet::const_iterator tt = projectTargets.begin(); tt != projectTargets.end(); ++tt) { - cmTarget const* target = (*tt)->Target; + cmGeneratorTarget const* target = *tt; if(target->GetType() == cmState::INTERFACE_LIBRARY) { continue; @@ -459,7 +459,7 @@ void cmGlobalVisualStudio7Generator::WriteTargetsToSolution( project.c_str(), location.c_str(), target->GetProperty("VS_PROJECT_TYPE"), - target->GetUtilities()); + target->Target->GetUtilities()); written = true; } else @@ -468,9 +468,7 @@ void cmGlobalVisualStudio7Generator::WriteTargetsToSolution( target->GetProperty("GENERATOR_FILE_NAME"); if(vcprojName) { - cmLocalGenerator* lg = - root->GetGlobalGenerator()->GetGeneratorTarget(target) - ->GetLocalGenerator(); + cmLocalGenerator* lg = target->GetLocalGenerator(); std::string dir = lg->GetCurrentBinaryDirectory(); dir = root->Convert(dir.c_str(), cmLocalGenerator::START_OUTPUT); @@ -479,7 +477,7 @@ void cmGlobalVisualStudio7Generator::WriteTargetsToSolution( dir = ""; // msbuild cannot handle ".\" prefix } this->WriteProject(fout, vcprojName, dir.c_str(), - *target); + *target->Target); written = true; } } |