summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudioGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-23 16:26:46 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-24 07:24:43 (GMT)
commit600af01d41e32d304e43dc98783ec0f7f010f40e (patch)
tree06228d5801877a7bd1ef1bc8cc3cf347de6650ca /Source/cmGlobalVisualStudioGenerator.cxx
parent330bfa83368989f6fd67072ef9f5c9e457230f17 (diff)
downloadCMake-600af01d41e32d304e43dc98783ec0f7f010f40e.zip
CMake-600af01d41e32d304e43dc98783ec0f7f010f40e.tar.gz
CMake-600af01d41e32d304e43dc98783ec0f7f010f40e.tar.bz2
VS: Port utility depends to cmGeneratorTarget
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.cxx')
-rw-r--r--Source/cmGlobalVisualStudioGenerator.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx
index eb6a4ef..3e25559 100644
--- a/Source/cmGlobalVisualStudioGenerator.cxx
+++ b/Source/cmGlobalVisualStudioGenerator.cxx
@@ -488,7 +488,7 @@ void cmGlobalVisualStudioGenerator::ComputeVSTargetDepends(
{
// Direct dependency on linkable target not allowed.
// Use an intermediate utility target.
- vsTargetDepend.insert(this->GetUtilityDepend(dep));
+ vsTargetDepend.insert(this->GetUtilityDepend(dgt));
}
}
}
@@ -508,12 +508,13 @@ void cmGlobalVisualStudioGenerator::FindMakeProgram(cmMakefile* mf)
//----------------------------------------------------------------------------
std::string
-cmGlobalVisualStudioGenerator::GetUtilityDepend(cmTarget const* target)
+cmGlobalVisualStudioGenerator::GetUtilityDepend(
+ cmGeneratorTarget const* target)
{
UtilityDependsMap::iterator i = this->UtilityDepends.find(target);
if(i == this->UtilityDepends.end())
{
- std::string name = this->WriteUtilityDepend(target);
+ std::string name = this->WriteUtilityDepend(target->Target);
UtilityDependsMap::value_type entry(target, name);
i = this->UtilityDepends.insert(entry).first;
}