diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-06-06 12:02:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-06-22 17:23:45 (GMT) |
commit | bb88668addb3746f6f043533f0405914834a0421 (patch) | |
tree | 041ed234df485a402548d9d2a7e4615963af6a80 /Source/cmNinjaTargetGenerator.cxx | |
parent | a3b210fd6cb85cba76f867e93d94dd835fa3278a (diff) | |
download | CMake-bb88668addb3746f6f043533f0405914834a0421.zip CMake-bb88668addb3746f6f043533f0405914834a0421.tar.gz CMake-bb88668addb3746f6f043533f0405914834a0421.tar.bz2 |
cmNinjaGenerator: Require cmGeneratorTarget.
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaTargetGenerator.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx index 6e35cd4..b18f368 100644 --- a/Source/cmNinjaTargetGenerator.cxx +++ b/Source/cmNinjaTargetGenerator.cxx @@ -57,19 +57,18 @@ cmNinjaTargetGenerator::New(cmGeneratorTarget* target) } } -cmNinjaTargetGenerator::cmNinjaTargetGenerator(cmTarget* target) +cmNinjaTargetGenerator::cmNinjaTargetGenerator(cmGeneratorTarget* target) : MacOSXContentGenerator(0), OSXBundleGenerator(0), MacContentFolders(), - Target(target), - Makefile(target->GetMakefile()), + Target(target->Target), + Makefile(target->Makefile), LocalGenerator( - static_cast<cmLocalNinjaGenerator*>(Makefile->GetLocalGenerator())), + static_cast<cmLocalNinjaGenerator*>(target->GetLocalGenerator())), Objects() { - this->GeneratorTarget = - this->GetGlobalGenerator()->GetGeneratorTarget(target); + this->GeneratorTarget = target; MacOSXContentGenerator = new MacOSXContentGeneratorType(this); } |