summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-21 22:38:03 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-05-21 23:21:35 (GMT)
commit8b4b9631f5f79ffee11b33c1e8826cd4064b3a23 (patch)
tree0f9bbb56aba29f8e5f715950c0d2ac944f29439b /Source/cmake.cxx
parent46656aa1fa69b79aa0c645a131d7abfdc34e621c (diff)
downloadCMake-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/cmake.cxx')
-rw-r--r--Source/cmake.cxx18
1 files changed, 18 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 15ea755..38a67cd 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -2553,6 +2553,24 @@ void cmake::IssueMessage(cmake::MessageType t, std::string const& text,
}
//----------------------------------------------------------------------------
+void cmake::IssueMessage(cmake::MessageType t, std::string const& text,
+ cmListFileContext const& lfc)
+{
+ std::ostringstream msg;
+ if (!this->PrintMessagePreamble(t, msg))
+ {
+ return;
+ }
+
+ // Add the immediate context.
+ msg << (lfc.Line ? " at " : " in ") << lfc;
+
+ printMessageText(msg, text);
+
+ displayMessage(t, msg);
+}
+
+//----------------------------------------------------------------------------
std::vector<std::string> cmake::GetDebugConfigs()
{
std::vector<std::string> configs;