summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorMateusz Zych <mte.zych@gmail.com>2018-10-06 20:29:37 (GMT)
committerBrad King <brad.king@kitware.com>2018-10-26 15:31:37 (GMT)
commit3eebe28ef41a298f9743db44a7265742891fc225 (patch)
tree0e74a3e301fca6b2aed4748d14715fffc29c6929 /Source/cmLocalNinjaGenerator.cxx
parent342551be71c8ed300e5e6d99fa81ab0ed3a62600 (diff)
downloadCMake-3eebe28ef41a298f9743db44a7265742891fc225.zip
CMake-3eebe28ef41a298f9743db44a7265742891fc225.tar.gz
CMake-3eebe28ef41a298f9743db44a7265742891fc225.tar.bz2
cmLocalNinjaGenerator: Simplify CreateRulePlaceholderExpander
Re-use the derived class implementation instead of duplicating it.
Diffstat (limited to 'Source/cmLocalNinjaGenerator.cxx')
-rw-r--r--Source/cmLocalNinjaGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmLocalNinjaGenerator.cxx b/Source/cmLocalNinjaGenerator.cxx
index eb31478..66edc91 100644
--- a/Source/cmLocalNinjaGenerator.cxx
+++ b/Source/cmLocalNinjaGenerator.cxx
@@ -17,6 +17,7 @@
#include "cmGeneratorTarget.h"
#include "cmGlobalGenerator.h"
#include "cmGlobalNinjaGenerator.h"
+#include "cmLocalGenerator.h"
#include "cmMakefile.h"
#include "cmNinjaTargetGenerator.h"
#include "cmRulePlaceholderExpander.h"
@@ -40,8 +41,7 @@ cmRulePlaceholderExpander*
cmLocalNinjaGenerator::CreateRulePlaceholderExpander() const
{
cmRulePlaceholderExpander* ret =
- new cmRulePlaceholderExpander(this->Compilers, this->VariableMappings,
- this->CompilerSysroot, this->LinkerSysroot);
+ this->cmLocalGenerator::CreateRulePlaceholderExpander();
ret->SetTargetImpLib("$TARGET_IMPLIB");
return ret;
}