summaryrefslogtreecommitdiffstats
path: root/Source/cmCommonTargetGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-16 17:19:49 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-16 18:24:43 (GMT)
commitfb4fca0b5efabdf061bd256ed9d35edae6f42b9d (patch)
tree9578ec77531c70f68cecaa46d95788385f274b72 /Source/cmCommonTargetGenerator.cxx
parent50fb2ad6463c500fde44c000c777aa3ac1cffc7e (diff)
downloadCMake-fb4fca0b5efabdf061bd256ed9d35edae6f42b9d.zip
CMake-fb4fca0b5efabdf061bd256ed9d35edae6f42b9d.tar.gz
CMake-fb4fca0b5efabdf061bd256ed9d35edae6f42b9d.tar.bz2
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 96fcc90..f7cc502 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);