summaryrefslogtreecommitdiffstats
path: root/Source/cmVariableWatchCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-06-03 17:19:15 (GMT)
committerBrad King <brad.king@kitware.com>2013-06-03 17:19:59 (GMT)
commit647745b3eedd0036d9e745007acd1d9cc460ccab (patch)
tree6b3e5cb90311ebaafd9abbdda033ec85803570dd /Source/cmVariableWatchCommand.cxx
parent515f9af0d48be569adb51dfb43ff483cfc0d5156 (diff)
downloadCMake-647745b3eedd0036d9e745007acd1d9cc460ccab.zip
CMake-647745b3eedd0036d9e745007acd1d9cc460ccab.tar.gz
CMake-647745b3eedd0036d9e745007acd1d9cc460ccab.tar.bz2
variable_watch: Print accesses as "CMake Debug Log" messages
Use makefile->IssueMessage() to print the unprocessed watch message in a format consistent with other CMake messages and with a more complete call stack for the access.
Diffstat (limited to 'Source/cmVariableWatchCommand.cxx')
-rw-r--r--Source/cmVariableWatchCommand.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/cmVariableWatchCommand.cxx b/Source/cmVariableWatchCommand.cxx
index 8532930..297a92b 100644
--- a/Source/cmVariableWatchCommand.cxx
+++ b/Source/cmVariableWatchCommand.cxx
@@ -117,11 +117,9 @@ void cmVariableWatchCommand::VariableAccessed(const std::string& variable,
if ( !processed )
{
cmOStringStream msg;
- msg << "* Variable \"" << variable.c_str() << "\" was accessed using "
- << accessString << " in: " << currentListFile << std::endl;
- msg << " The value of the variable: \"" << newValue << "\"" << std::endl;
- msg << " The list file stack: " << stack.c_str();
- cmSystemTools::Message(msg.str().c_str());
+ msg << "Variable \"" << variable.c_str() << "\" was accessed using "
+ << accessString << " with value \"" << newValue << "\".";
+ makefile->IssueMessage(cmake::LOG, msg.str());
}
this->InCallback = false;
}