summaryrefslogtreecommitdiff
path: root/Source/cmCommonTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-07-08 11:13:11 -0400
committerBrad King <brad.king@kitware.com>2015-07-09 09:50:05 -0400
commite7dcdd1011719b031d580d9094ad1f8c4701ef38 (patch)
tree16e8468d64006928ade55b3f37555d689eacec39 /Source/cmCommonTargetGenerator.cxx
parent001f9b361711b479ee0d530056e44b7444edfcff (diff)
downloadcmake-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.cxx13
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()))
{
}