Commit 3eebe28e authored by Mateusz Zych's avatar Mateusz Zych Committed by Brad King
Browse files

cmLocalNinjaGenerator: Simplify CreateRulePlaceholderExpander

Re-use the derived class implementation instead of duplicating it.
parent 342551be
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include "cmGeneratorTarget.h" #include "cmGeneratorTarget.h"
#include "cmGlobalGenerator.h" #include "cmGlobalGenerator.h"
#include "cmGlobalNinjaGenerator.h" #include "cmGlobalNinjaGenerator.h"
#include "cmLocalGenerator.h"
#include "cmMakefile.h" #include "cmMakefile.h"
#include "cmNinjaTargetGenerator.h" #include "cmNinjaTargetGenerator.h"
#include "cmRulePlaceholderExpander.h" #include "cmRulePlaceholderExpander.h"
...@@ -40,8 +41,7 @@ cmRulePlaceholderExpander* ...@@ -40,8 +41,7 @@ cmRulePlaceholderExpander*
cmLocalNinjaGenerator::CreateRulePlaceholderExpander() const cmLocalNinjaGenerator::CreateRulePlaceholderExpander() const
{ {
cmRulePlaceholderExpander* ret = cmRulePlaceholderExpander* ret =
new cmRulePlaceholderExpander(this->Compilers, this->VariableMappings, this->cmLocalGenerator::CreateRulePlaceholderExpander();
this->CompilerSysroot, this->LinkerSysroot);
ret->SetTargetImpLib("$TARGET_IMPLIB"); ret->SetTargetImpLib("$TARGET_IMPLIB");
return ret; return ret;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment