summaryrefslogtreecommitdiffstats
path: root/Source/cmComputeLinkDepends.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-10-17 14:44:09 (GMT)
committerBrad King <brad.king@kitware.com>2018-10-18 12:07:46 (GMT)
commita093b1a4f3c8c40c55c50ad8e701ceb599961140 (patch)
tree4cd25b87073e83558763b122d2816627e5b55e15 /Source/cmComputeLinkDepends.cxx
parente022e2d8734ffbc0378b75d85b32a2524302dd50 (diff)
downloadCMake-a093b1a4f3c8c40c55c50ad8e701ceb599961140.zip
CMake-a093b1a4f3c8c40c55c50ad8e701ceb599961140.tar.gz
CMake-a093b1a4f3c8c40c55c50ad8e701ceb599961140.tar.bz2
cmLinkItem: Add backtrace
Carry a backtrace on every link item, not just link implementation items. For now the non-impl items will still have empty backtraces at runtime, but this will allow us to introduce values over time.
Diffstat (limited to 'Source/cmComputeLinkDepends.cxx')
-rw-r--r--Source/cmComputeLinkDepends.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmComputeLinkDepends.cxx b/Source/cmComputeLinkDepends.cxx
index aa17de6..e3d53e4 100644
--- a/Source/cmComputeLinkDepends.cxx
+++ b/Source/cmComputeLinkDepends.cxx
@@ -6,6 +6,7 @@
#include "cmComputeComponentGraph.h"
#include "cmGeneratorTarget.h"
#include "cmGlobalGenerator.h"
+#include "cmListFileCache.h"
#include "cmLocalGenerator.h"
#include "cmMakefile.h"
#include "cmStateTypes.h"
@@ -565,7 +566,7 @@ cmLinkItem cmComputeLinkDepends::ResolveLinkItem(int depender_index,
from = depender;
}
}
- return from->ResolveLinkItem(name);
+ return from->ResolveLinkItem(name, cmListFileBacktrace());
}
void cmComputeLinkDepends::InferDependencies()