diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-05-21 22:38:03 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-05-21 23:21:35 (GMT) |
commit | 8b4b9631f5f79ffee11b33c1e8826cd4064b3a23 (patch) | |
tree | 0f9bbb56aba29f8e5f715950c0d2ac944f29439b /Source/cmCommandArgumentParserHelper.cxx | |
parent | 46656aa1fa69b79aa0c645a131d7abfdc34e621c (diff) | |
download | CMake-8b4b9631f5f79ffee11b33c1e8826cd4064b3a23.zip CMake-8b4b9631f5f79ffee11b33c1e8826cd4064b3a23.tar.gz CMake-8b4b9631f5f79ffee11b33c1e8826cd4064b3a23.tar.bz2 |
cmake: Add IssueMessage overload taking a single cmListFileContext.
Port appropriate clients to use it.
Diffstat (limited to 'Source/cmCommandArgumentParserHelper.cxx')
-rw-r--r-- | Source/cmCommandArgumentParserHelper.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/cmCommandArgumentParserHelper.cxx b/Source/cmCommandArgumentParserHelper.cxx index c816c23..bd098a5 100644 --- a/Source/cmCommandArgumentParserHelper.cxx +++ b/Source/cmCommandArgumentParserHelper.cxx @@ -14,6 +14,7 @@ #include "cmSystemTools.h" #include "cmMakefile.h" #include "cmState.h" +#include "cmLocalGenerator.h" #include "cmCommandArgumentLexer.h" @@ -139,14 +140,14 @@ char* cmCommandArgumentParserHelper::ExpandVariable(const char* var) this->Makefile->GetHomeOutputDirectory())) { std::ostringstream msg; - cmListFileBacktrace bt(this->Makefile->GetLocalGenerator()); cmListFileContext lfc; - lfc.FilePath = this->FileName; + lfc.FilePath = this->Makefile->GetLocalGenerator() + ->Convert(this->FileName, cmLocalGenerator::HOME); + lfc.Line = this->FileLine; - bt.Append(lfc); msg << "uninitialized variable \'" << var << "\'"; this->Makefile->GetCMakeInstance()->IssueMessage(cmake::AUTHOR_WARNING, - msg.str(), bt); + msg.str(), lfc); } } return 0; |