diff options
author | Brad King <brad.king@kitware.com> | 2020-02-10 21:16:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-02-10 21:17:03 (GMT) |
commit | 8752c1bd64e8eafd3aa73dae008b9a6efe9df3df (patch) | |
tree | 2bb7adc68219cd5c6e9f50a19cf041d41a16abe7 /Source/cmLinkLineComputer.cxx | |
parent | 155540d89eb5ac00fd8ba03a9580de2382af6386 (diff) | |
parent | e75632843480aefc303303b85350ecddcc57cc5e (diff) | |
download | CMake-8752c1bd64e8eafd3aa73dae008b9a6efe9df3df.zip CMake-8752c1bd64e8eafd3aa73dae008b9a6efe9df3df.tar.gz CMake-8752c1bd64e8eafd3aa73dae008b9a6efe9df3df.tar.bz2 |
Merge branch 'backport-3.16-link-line-backtrace'
Diffstat (limited to 'Source/cmLinkLineComputer.cxx')
-rw-r--r-- | Source/cmLinkLineComputer.cxx | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/Source/cmLinkLineComputer.cxx b/Source/cmLinkLineComputer.cxx index 4320010..86ee953 100644 --- a/Source/cmLinkLineComputer.cxx +++ b/Source/cmLinkLineComputer.cxx @@ -9,7 +9,6 @@ #include "cmComputeLinkInformation.h" #include "cmGeneratorTarget.h" -#include "cmLinkItem.h" #include "cmListFileCache.h" #include "cmOutputConverter.h" #include "cmStateDirectory.h" @@ -85,27 +84,14 @@ void cmLinkLineComputer::ComputeLinkLibs( BT<std::string> linkLib; if (item.IsPath) { linkLib.Value += cli.GetLibLinkFileFlag(); - linkLib.Value += - this->ConvertToOutputFormat(this->ConvertToLinkReference(item.Value)); + linkLib.Value += this->ConvertToOutputFormat( + this->ConvertToLinkReference(item.Value.Value)); + linkLib.Backtrace = item.Value.Backtrace; } else { - linkLib.Value += item.Value; + linkLib = item.Value; } linkLib.Value += " "; - const cmLinkImplementation* linkImpl = - cli.GetTarget()->GetLinkImplementation(cli.GetConfig()); - - for (const cmLinkImplItem& iter : linkImpl->Libraries) { - if (iter.Target != nullptr && - iter.Target->GetType() != cmStateEnums::INTERFACE_LIBRARY) { - std::string libPath = iter.Target->GetLocation(cli.GetConfig()); - if (item.Value == libPath) { - linkLib.Backtrace = iter.Backtrace; - break; - } - } - } - linkLibraries.emplace_back(linkLib); } } |