summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileTargetGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-06-06 12:59:06 (GMT)
committerBrad King <brad.king@kitware.com>2015-06-22 17:23:46 (GMT)
commite77142350de1dec03ca788e3d3e278b7b9358fb5 (patch)
treed3e50ef3ef2352753a429010f0a09d2227fe7393 /Source/cmMakefileTargetGenerator.cxx
parent5aa556be560b782d149b53bccc12dfc2be2bda0b (diff)
downloadCMake-e77142350de1dec03ca788e3d3e278b7b9358fb5.zip
CMake-e77142350de1dec03ca788e3d3e278b7b9358fb5.tar.gz
CMake-e77142350de1dec03ca788e3d3e278b7b9358fb5.tar.bz2
Get the local generator from the GeneratorTarget.
The Makefile should not know the LocalGenerator at all
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileTargetGenerator.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx
index fa471c9..09fad5c 100644
--- a/Source/cmMakefileTargetGenerator.cxx
+++ b/Source/cmMakefileTargetGenerator.cxx
@@ -1173,8 +1173,10 @@ void cmMakefileTargetGenerator::WriteTargetDependRules()
&& linkee->GetType() != cmTarget::INTERFACE_LIBRARY
&& emitted.insert(linkee).second)
{
+ cmGeneratorTarget* gt =
+ this->GlobalGenerator->GetGeneratorTarget(linkee);
+ cmLocalGenerator* lg = gt->GetLocalGenerator();
cmMakefile* mf = linkee->GetMakefile();
- cmLocalGenerator* lg = mf->GetLocalGenerator();
std::string di = mf->GetCurrentBinaryDirectory();
di += "/";
di += lg->GetTargetDirectory(*linkee);