diff options
author | Brad King <brad.king@kitware.com> | 2020-09-25 07:40:42 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-09-28 09:49:07 -0400 |
commit | 68af831505450a34ddd4bf767844bc3890eb52e5 (patch) | |
tree | 30acd56959f1bc4b36e9b69451264fc67ac73cf4 /Source/cmTargetLinkLibrariesCommand.cxx | |
parent | 280f3918f3a731f64c94b2b7c912c58d714fc676 (diff) | |
download | cmake-68af831505450a34ddd4bf767844bc3890eb52e5.tar.gz |
cmMakefile: Inline GetExecutionContext at call sites
The method only had one line, and its implementation is more clear
at the call sites than the method name.
Diffstat (limited to 'Source/cmTargetLinkLibrariesCommand.cxx')
-rw-r--r-- | Source/cmTargetLinkLibrariesCommand.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmTargetLinkLibrariesCommand.cxx b/Source/cmTargetLinkLibrariesCommand.cxx index 7db2c46db4..aecc18e3ac 100644 --- a/Source/cmTargetLinkLibrariesCommand.cxx +++ b/Source/cmTargetLinkLibrariesCommand.cxx @@ -10,6 +10,7 @@ #include "cmExecutionStatus.h" #include "cmGeneratorExpression.h" #include "cmGlobalGenerator.h" +#include "cmListFileCache.h" #include "cmMakefile.h" #include "cmMessageType.h" #include "cmPolicies.h" @@ -386,7 +387,7 @@ bool TLL::HandleLibrary(ProcessingState currentProcessingState, ? cmTarget::KeywordTLLSignature : cmTarget::PlainTLLSignature; if (!this->Target->PushTLLCommandTrace( - sig, this->Makefile.GetExecutionContext())) { + sig, this->Makefile.GetBacktrace().Top())) { std::ostringstream e; const char* modal = nullptr; MessageType messageType = MessageType::AUTHOR_WARNING; |