summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-10-16 13:35:32 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-10-16 13:35:32 (GMT)
commita4f0b01939ca7c69c1e31f017c6e87b642388252 (patch)
treed89ce881010661abf4fa29151c541a90210a9717 /Source/cmGlobalNinjaGenerator.cxx
parent2f1c3401ec132f0672c108a2312146f39e8f017b (diff)
parent7f5ec9f109dc66bc22ac377a7fb57d9221aed56b (diff)
downloadCMake-a4f0b01939ca7c69c1e31f017c6e87b642388252.zip
CMake-a4f0b01939ca7c69c1e31f017c6e87b642388252.tar.gz
CMake-a4f0b01939ca7c69c1e31f017c6e87b642388252.tar.bz2
Merge topic 'GetTargetDirectory-cmGeneratorTarget'
7f5ec9f1 cmLocalGenerator: Port GetTargetDirectory to cmGeneratorTarget. 06f56d3b cmLocalUnixMakefileGenerator3: Port AppendCleanCommand to cmGeneratorTarget. c8f8f165 cmLocalUnixMakefileGenerator3: Port another API to cmGeneratorTarget. 9f299a12 cmLocalUnixMakefileGenerator3: Port API to cmGenertorTarget.
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r--Source/cmGlobalNinjaGenerator.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx
index 32e6077..de640a4 100644
--- a/Source/cmGlobalNinjaGenerator.cxx
+++ b/Source/cmGlobalNinjaGenerator.cxx
@@ -717,13 +717,11 @@ std::string cmGlobalNinjaGenerator::GetEditCacheCommand() const
void cmGlobalNinjaGenerator
::ComputeTargetObjectDirectory(cmGeneratorTarget* gt) const
{
- cmTarget* target = gt->Target;
-
// Compute full path to object file directory for this target.
std::string dir;
dir += gt->Makefile->GetCurrentBinaryDirectory();
dir += "/";
- dir += gt->LocalGenerator->GetTargetDirectory(*target);
+ dir += gt->LocalGenerator->GetTargetDirectory(gt);
dir += "/";
gt->ObjectDirectory = dir;
}