diff options
author | Justin Goshi <jgoshi@microsoft.com> | 2019-09-11 17:28:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-09-18 13:57:30 (GMT) |
commit | a209b31d0d088de40ba5bebdc6c9650f0583b2a6 (patch) | |
tree | f943fab26bc55fdcd07128da54d0690f3887b858 /Source/cmComputeLinkInformation.cxx | |
parent | b5b10c8e955abb2b0f18c3e41b7892471857bcc1 (diff) | |
download | CMake-a209b31d0d088de40ba5bebdc6c9650f0583b2a6.zip CMake-a209b31d0d088de40ba5bebdc6c9650f0583b2a6.tar.gz CMake-a209b31d0d088de40ba5bebdc6c9650f0583b2a6.tar.bz2 |
cmComputeLinkInformation: Add AppendValues with backtraces
Diffstat (limited to 'Source/cmComputeLinkInformation.cxx')
-rw-r--r-- | Source/cmComputeLinkInformation.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmComputeLinkInformation.cxx b/Source/cmComputeLinkInformation.cxx index dd8d246..ed0bb85 100644 --- a/Source/cmComputeLinkInformation.cxx +++ b/Source/cmComputeLinkInformation.cxx @@ -6,6 +6,7 @@ #include "cmComputeLinkDepends.h" #include "cmGeneratorTarget.h" #include "cmGlobalGenerator.h" +#include "cmListFileCache.h" #include "cmLocalGenerator.h" #include "cmMakefile.h" #include "cmMessageType.h" @@ -406,6 +407,18 @@ cmComputeLinkInformation::~cmComputeLinkInformation() delete this->OrderDependentRPath; } +void cmComputeLinkInformation::AppendValues( + std::string& result, std::vector<BT<std::string>>& values) +{ + for (BT<std::string>& p : values) { + if (result.empty()) { + result.append(" "); + } + + result.append(p.Value); + } +} + cmComputeLinkInformation::ItemVector const& cmComputeLinkInformation::GetItems() const { |