diff options
author | Stephen Kelly <steveire@gmail.com> | 2016-10-08 12:21:36 +0200 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2016-10-10 20:38:54 +0200 |
commit | 69295812065a5d07c07347add2fdcf8f36f993ba (patch) | |
tree | bbbc09283580c75e2305be1024b6202da2ea423a /Source/cmMakefileLibraryTargetGenerator.cxx | |
parent | 5b361fdda0f2808f0368b746a880981ebda0ade0 (diff) | |
download | cmake-69295812065a5d07c07347add2fdcf8f36f993ba.tar.gz |
Makefiles: Port CreateLinkLibs to cmLinkLineComputer
Diffstat (limited to 'Source/cmMakefileLibraryTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileLibraryTargetGenerator.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/cmMakefileLibraryTargetGenerator.cxx b/Source/cmMakefileLibraryTargetGenerator.cxx index b12e77910c..e32f3a7255 100644 --- a/Source/cmMakefileLibraryTargetGenerator.cxx +++ b/Source/cmMakefileLibraryTargetGenerator.cxx @@ -502,8 +502,13 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules( // Collect up flags to link in needed libraries. std::string linkLibs; if (this->GeneratorTarget->GetType() != cmState::STATIC_LIBRARY) { - this->CreateLinkLibs(linkLibs, relink, useResponseFileForLibs, depends, - useWatcomQuote); + + CM_AUTO_PTR<cmLinkLineComputer> linkLineComputer( + this->CreateLinkLineComputer( + this->LocalGenerator->GetStateSnapshot().GetDirectory())); + + this->CreateLinkLibs(linkLineComputer.get(), linkLibs, relink, + useResponseFileForLibs, depends, useWatcomQuote); } // Construct object file lists that may be needed to expand the |