summaryrefslogtreecommitdiffstats
path: root/Source/cmakemain.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-05-15 13:38:30 (GMT)
committerBrad King <brad.king@kitware.com>2014-05-15 14:24:21 (GMT)
commit73b13f56413cac74d90a2ab1938add3bbe740ecb (patch)
tree9cfad78062b4804f73d5efab6cce30f5fe836504 /Source/cmakemain.cxx
parent7577a542dfa0aac045b97bfe4440241583c62e3a (diff)
downloadCMake-73b13f56413cac74d90a2ab1938add3bbe740ecb.zip
CMake-73b13f56413cac74d90a2ab1938add3bbe740ecb.tar.gz
CMake-73b13f56413cac74d90a2ab1938add3bbe740ecb.tar.bz2
cmSystemTools: Rename ErrorCallback to MessageCallback
Clarify that it is the callback for the cmSystemTools::Message API. Rename callback clients too.
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r--Source/cmakemain.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index fcaa127..77f1e4e 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -129,8 +129,8 @@ static std::string cmakemainGetStack(void *clientdata)
return msg;
}
-static void cmakemainErrorCallback(const char* m, const char*, bool&,
- void *clientdata)
+static void cmakemainMessageCallback(const char* m, const char*, bool&,
+ void *clientdata)
{
std::cerr << m << cmakemainGetStack(clientdata) << std::endl << std::flush;
}
@@ -310,7 +310,7 @@ int do_cmake(int ac, char const* const* av)
return ret;
}
cmake cm;
- cmSystemTools::SetErrorCallback(cmakemainErrorCallback, (void *)&cm);
+ cmSystemTools::SetMessageCallback(cmakemainMessageCallback, (void *)&cm);
cm.SetProgressCallback(cmakemainProgressCallback, (void *)&cm);
cm.SetWorkingMode(workingMode);