summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-10-29 15:41:31 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-10-29 15:41:31 (GMT)
commitb0e3a2def0c20f20e4cbcf0ff03017777dc1a896 (patch)
treef9a49e971fc787ba7ba5e02ba950046ab4390731 /Source/cmSystemTools.cxx
parent539318f5875de0c0d0e008f820a3bd721d322f09 (diff)
downloadCMake-b0e3a2def0c20f20e4cbcf0ff03017777dc1a896.zip
CMake-b0e3a2def0c20f20e4cbcf0ff03017777dc1a896.tar.gz
CMake-b0e3a2def0c20f20e4cbcf0ff03017777dc1a896.tar.bz2
ENH: use callback not ifdef for MFC message box errors
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx11
1 files changed, 3 insertions, 8 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 577c8f0..a99c5ef 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -709,16 +709,11 @@ void cmSystemTools::Message(const char* m1, const char *title)
(*s_ErrorCallback)(m1, title, disableMessages);
return;
}
-#if defined(_WIN32) && !defined(__CYGWIN__)
- std::string message = m1;
- message += "\n\n(Press Cancel to suppress any further messages.)";
- if(::MessageBox(0, message.c_str(), title,
- MB_OKCANCEL) == IDCANCEL)
+ else
{
- disableMessages = true;
+ std::cerr << m1 << std::endl;
}
-#endif
- std::cerr << m1 << std::endl;
+
}