summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-06-04 20:55:37 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-06-04 20:55:37 (GMT)
commitba9aad7c9966e7e5ad567f5922d653f6fdcdff8f (patch)
treea20d5fec94b67636bd6176db8e263729ecb08a73 /Source/cmSystemTools.cxx
parentd037d114477a77bf5992647a42305d7ca2cce331 (diff)
downloadCMake-ba9aad7c9966e7e5ad567f5922d653f6fdcdff8f.zip
CMake-ba9aad7c9966e7e5ad567f5922d653f6fdcdff8f.tar.gz
CMake-ba9aad7c9966e7e5ad567f5922d653f6fdcdff8f.tar.bz2
new message command
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index c9f0753..a878e1f 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -542,16 +542,18 @@ void cmSystemTools::Error(const char* m1, const char* m2,
message += m4;
}
cmSystemTools::s_ErrorOccured = true;
+ cmSystemTools::Message(message.c_str(),"Error");
+}
+
+void cmSystemTools::Message(const char* m1, const char *title)
+{
#if defined(_WIN32) && !defined(__CYGWIN__)
- ::MessageBox(0, message.c_str(), 0, MB_OK);
- std::cerr << message.c_str() << std::endl;
-#else
- std::cerr << message.c_str() << std::endl;
+ ::MessageBox(0, m1, title, MB_OK);
#endif
+ std::cerr << m1 << std::endl;
}
-
void cmSystemTools::CopyFileIfDifferent(const char* source,
const char* destination)
{