diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-23 18:26:46 +0200 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-24 09:24:43 +0200 |
commit | 600af01d41e32d304e43dc98783ec0f7f010f40e (patch) | |
tree | 06228d5801877a7bd1ef1bc8cc3cf347de6650ca /Source/cmGlobalVisualStudioGenerator.cxx | |
parent | 330bfa83368989f6fd67072ef9f5c9e457230f17 (diff) | |
download | cmake-600af01d41e32d304e43dc98783ec0f7f010f40e.tar.gz |
VS: Port utility depends to cmGeneratorTarget
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudioGenerator.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx index eb6a4efec9..3e25559dcb 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; } |