diff options
author | Brad King <brad.king@kitware.com> | 2015-07-08 11:13:11 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-07-09 09:50:05 -0400 |
commit | e7dcdd1011719b031d580d9094ad1f8c4701ef38 (patch) | |
tree | 16e8468d64006928ade55b3f37555d689eacec39 /Source/cmCommonTargetGenerator.cxx | |
parent | 001f9b361711b479ee0d530056e44b7444edfcff (diff) | |
download | cmake-e7dcdd1011719b031d580d9094ad1f8c4701ef38.tar.gz |
cmCommonTargetGenerator: Adopt basic target generator members
De-duplicate the GeneratorTarget, Target, and Makefile members from the
local Makefile and Ninja generators.
Diffstat (limited to 'Source/cmCommonTargetGenerator.cxx')
-rw-r--r-- | Source/cmCommonTargetGenerator.cxx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Source/cmCommonTargetGenerator.cxx b/Source/cmCommonTargetGenerator.cxx index e1f7522600..9d10e39bdb 100644 --- a/Source/cmCommonTargetGenerator.cxx +++ b/Source/cmCommonTargetGenerator.cxx @@ -11,7 +11,18 @@ ============================================================================*/ #include "cmCommonTargetGenerator.h" -cmCommonTargetGenerator::cmCommonTargetGenerator() +#include "cmGeneratorTarget.h" +#include "cmGlobalCommonGenerator.h" +#include "cmLocalCommonGenerator.h" +#include "cmTarget.h" + +cmCommonTargetGenerator::cmCommonTargetGenerator(cmGeneratorTarget* gt) + : GeneratorTarget(gt) + , Target(gt->Target) + , Makefile(gt->Makefile) + , LocalGenerator(static_cast<cmLocalCommonGenerator*>(gt->LocalGenerator)) + , GlobalGenerator(static_cast<cmGlobalCommonGenerator*>( + gt->LocalGenerator->GetGlobalGenerator())) { } |