summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-23 16:26:38 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-24 07:19:56 (GMT)
commit26e23e8463f9b9e2298e317a70925c56bcb018d1 (patch)
tree253cfc82f2fd077096cfca909e3d959df90fe3c0 /Source/cmLocalVisualStudio7Generator.cxx
parent01c26986931a409dbb246b780b808c51aea35c2b (diff)
downloadCMake-26e23e8463f9b9e2298e317a70925c56bcb018d1.zip
CMake-26e23e8463f9b9e2298e317a70925c56bcb018d1.tar.gz
CMake-26e23e8463f9b9e2298e317a70925c56bcb018d1.tar.bz2
VS: Port ComputeLongestObjectDirectory to cmGeneratorTarget
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index a3ca67e..8b1915a 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -1689,10 +1689,10 @@ cmLocalVisualStudio7GeneratorFCInfo
//----------------------------------------------------------------------------
std::string
cmLocalVisualStudio7Generator
-::ComputeLongestObjectDirectory(cmTarget& target) const
+::ComputeLongestObjectDirectory(cmGeneratorTarget const* target) const
{
std::vector<std::string> configs;
- target.GetMakefile()->GetConfigurations(configs);
+ target->Target->GetMakefile()->GetConfigurations(configs);
// Compute the maximum length configuration name.
std::string config_max;
@@ -1711,9 +1711,7 @@ cmLocalVisualStudio7Generator
std::string dir_max;
dir_max += this->GetCurrentBinaryDirectory();
dir_max += "/";
- cmGeneratorTarget* gt =
- this->GlobalGenerator->GetGeneratorTarget(&target);
- dir_max += this->GetTargetDirectory(gt);
+ dir_max += this->GetTargetDirectory(target);
dir_max += "/";
dir_max += config_max;
dir_max += "/";