mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 04:09:33 -05:00
cmGeneratorTarget: Access global state through LocalGenerator.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user