summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-06-06 11:14:04 (GMT)
committerBrad King <brad.king@kitware.com>2015-06-22 17:23:45 (GMT)
commita3b210fd6cb85cba76f867e93d94dd835fa3278a (patch)
tree82de7537dc09b00543d680bf24e53b01a7d362f7 /Source/cmGeneratorTarget.cxx
parent8ec60c675a3fb4294776b2d644974361b145c444 (diff)
downloadCMake-a3b210fd6cb85cba76f867e93d94dd835fa3278a.zip
CMake-a3b210fd6cb85cba76f867e93d94dd835fa3278a.tar.gz
CMake-a3b210fd6cb85cba76f867e93d94dd835fa3278a.tar.bz2
cmGeneratorTarget: Require a cmLocalGenerator to construct.
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 482eefd..4494553 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -220,11 +220,12 @@ struct TagVisitor
};
//----------------------------------------------------------------------------
-cmGeneratorTarget::cmGeneratorTarget(cmTarget* t): Target(t),
+cmGeneratorTarget::cmGeneratorTarget(cmTarget* t, cmLocalGenerator* lg)
+ : Target(t),
SourceFileFlagsConstructed(false)
{
this->Makefile = this->Target->GetMakefile();
- this->LocalGenerator = this->Makefile->GetLocalGenerator();
+ this->LocalGenerator = lg;
this->GlobalGenerator = this->Makefile->GetGlobalGenerator();
}