diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2010-12-07 21:38:25 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2010-12-07 21:38:25 (GMT) |
commit | 668e005db5d9cece95965e23b8c589bd50a29faa (patch) | |
tree | 19bd380b41f2f35a5c6f779a19a063e62b969246 /Source/cmCommandArgumentParserHelper.cxx | |
parent | 88cd4c1e923817f0a38bbc9d14d0bf40a2151897 (diff) | |
download | CMake-668e005db5d9cece95965e23b8c589bd50a29faa.zip CMake-668e005db5d9cece95965e23b8c589bd50a29faa.tar.gz CMake-668e005db5d9cece95965e23b8c589bd50a29faa.tar.bz2 |
Use cmake::IssueMessage for warnings
Diffstat (limited to 'Source/cmCommandArgumentParserHelper.cxx')
-rw-r--r-- | Source/cmCommandArgumentParserHelper.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Source/cmCommandArgumentParserHelper.cxx b/Source/cmCommandArgumentParserHelper.cxx index decdaaa..a781767 100644 --- a/Source/cmCommandArgumentParserHelper.cxx +++ b/Source/cmCommandArgumentParserHelper.cxx @@ -137,9 +137,14 @@ char* cmCommandArgumentParserHelper::ExpandVariable(const char* var) this->Makefile->GetHomeOutputDirectory())) { cmOStringStream msg; - msg << this->FileName << ":" << this->FileLine << ":" << - " CMake Warning: uninitialized variable \'" << var << "\'"; - cmSystemTools::Message(msg.str().c_str()); + cmListFileBacktrace bt; + cmListFileContext lfc; + lfc.FilePath = this->FileName; + lfc.Line = this->FileLine; + bt.push_back(lfc); + msg << "uninitialized variable \'" << var << "\'"; + this->Makefile->GetCMakeInstance()->IssueMessage(cmake::AUTHOR_WARNING, + msg.str().c_str(), bt); } } return 0; |