diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-16 19:19:49 +0200 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-16 20:24:43 +0200 |
commit | fb4fca0b5efabdf061bd256ed9d35edae6f42b9d (patch) | |
tree | 9578ec77531c70f68cecaa46d95788385f274b72 /Source/cmCommonTargetGenerator.cxx | |
parent | 50fb2ad6463c500fde44c000c777aa3ac1cffc7e (diff) | |
download | cmake-fb4fca0b5efabdf061bd256ed9d35edae6f42b9d.tar.gz |
cmGeneratorTarget: Access global state through LocalGenerator.
Diffstat (limited to 'Source/cmCommonTargetGenerator.cxx')
-rw-r--r-- | Source/cmCommonTargetGenerator.cxx | 3 |
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); |