diff options
author | Brad King <brad.king@kitware.com> | 2015-05-22 13:39:54 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-05-22 13:39:54 (GMT) |
commit | d0f59d359830c68fc7f1a295b9f0ba7ce331d867 (patch) | |
tree | 48e910f3efb5d43175ccc8f8c745fe65fc719e51 /Source/cmCommandArgumentParserHelper.cxx | |
parent | edf84ab3e9a20cb00fc2763dc71b073aa3322909 (diff) | |
parent | 8b4b9631f5f79ffee11b33c1e8826cd4064b3a23 (diff) | |
download | CMake-d0f59d359830c68fc7f1a295b9f0ba7ce331d867.zip CMake-d0f59d359830c68fc7f1a295b9f0ba7ce331d867.tar.gz CMake-d0f59d359830c68fc7f1a295b9f0ba7ce331d867.tar.bz2 |
Merge topic 'clean-up-backtrace-handling'
8b4b9631 cmake: Add IssueMessage overload taking a single cmListFileContext.
46656aa1 cmake: Extract displayMessage method.
55fc5e7c cmake: Extract printMessageText method.
ca7cc2eb cmake: Extract PrintMessagePreamble method.
fa752bf3 cmake: Move isError determination to a more-natural place.
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; |