summaryrefslogtreecommitdiffstats
path: root/Source/cmLinkLineComputer.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-02-10 21:16:56 (GMT)
committerBrad King <brad.king@kitware.com>2020-02-10 21:17:03 (GMT)
commit8752c1bd64e8eafd3aa73dae008b9a6efe9df3df (patch)
tree2bb7adc68219cd5c6e9f50a19cf041d41a16abe7 /Source/cmLinkLineComputer.cxx
parent155540d89eb5ac00fd8ba03a9580de2382af6386 (diff)
parente75632843480aefc303303b85350ecddcc57cc5e (diff)
downloadCMake-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.cxx22
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);
}
}