diff options
author | Brad King <brad.king@kitware.com> | 2018-10-17 14:25:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-10-18 12:10:55 (GMT) |
commit | a6e02f881dc5e74d79201f761fb28c99a9e7d2af (patch) | |
tree | a71f752171ef570eff69ec6cc545671ba25a9db0 /Source/cmLocalUnixMakefileGenerator3.cxx | |
parent | a093b1a4f3c8c40c55c50ad8e701ceb599961140 (diff) | |
download | CMake-a6e02f881dc5e74d79201f761fb28c99a9e7d2af.zip CMake-a6e02f881dc5e74d79201f761fb28c99a9e7d2af.tar.gz CMake-a6e02f881dc5e74d79201f761fb28c99a9e7d2af.tar.bz2 |
add_dependencies: Track backtraces internally
Record backtraces for "utility" dependencies created by
`add_dependencies` calls.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index 68cdef0..6a535c1 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -17,6 +17,7 @@ #include "cmGeneratorTarget.h" #include "cmGlobalGenerator.h" #include "cmGlobalUnixMakefileGenerator3.h" +#include "cmListFileCache.h" #include "cmLocalGenerator.h" #include "cmMakefile.h" #include "cmMakefileTargetGenerator.h" @@ -1546,8 +1547,10 @@ void cmLocalUnixMakefileGenerator3::WriteLocalAllRules( if (!text) { text = "Running external command ..."; } - depends.insert(depends.end(), gt->GetUtilities().begin(), - gt->GetUtilities().end()); + depends.reserve(gt->GetUtilities().size()); + for (BT<std::string> const& u : gt->GetUtilities()) { + depends.push_back(u.Value); + } this->AppendEcho(commands, text, cmLocalUnixMakefileGenerator3::EchoGlobal); |