summaryrefslogtreecommitdiff
path: root/Source/cmCommonTargetGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-16 19:19:49 +0200
committerStephen Kelly <steveire@gmail.com>2015-10-16 20:24:43 +0200
commitfb4fca0b5efabdf061bd256ed9d35edae6f42b9d (patch)
tree9578ec77531c70f68cecaa46d95788385f274b72 /Source/cmCommonTargetGenerator.cxx
parent50fb2ad6463c500fde44c000c777aa3ac1cffc7e (diff)
downloadcmake-fb4fca0b5efabdf061bd256ed9d35edae6f42b9d.tar.gz
cmGeneratorTarget: Access global state through LocalGenerator.
Diffstat (limited to 'Source/cmCommonTargetGenerator.cxx')
-rw-r--r--Source/cmCommonTargetGenerator.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmCommonTargetGenerator.cxx b/Source/cmCommonTargetGenerator.cxx
index 96fcc90e77..f7cc502cc1 100644
--- a/Source/cmCommonTargetGenerator.cxx
+++ b/Source/cmCommonTargetGenerator.cxx
@@ -400,8 +400,7 @@ cmCommonTargetGenerator::GetLinkedTargetDirectories() const
&& emitted.insert(linkee).second)
{
cmLocalGenerator* lg = linkee->GetLocalGenerator();
- cmMakefile* mf = linkee->Target->GetMakefile();
- std::string di = mf->GetCurrentBinaryDirectory();
+ std::string di = lg->GetCurrentBinaryDirectory();
di += "/";
di += lg->GetTargetDirectory(linkee);
dirs.push_back(di);