new message command
This commit is contained in:
parent
d037d11447
commit
ba9aad7c99
|
@ -542,14 +542,16 @@ void cmSystemTools::Error(const char* m1, const char* m2,
|
||||||
message += m4;
|
message += m4;
|
||||||
}
|
}
|
||||||
cmSystemTools::s_ErrorOccured = true;
|
cmSystemTools::s_ErrorOccured = true;
|
||||||
#if defined(_WIN32) && !defined(__CYGWIN__)
|
cmSystemTools::Message(message.c_str(),"Error");
|
||||||
::MessageBox(0, message.c_str(), 0, MB_OK);
|
|
||||||
std::cerr << message.c_str() << std::endl;
|
|
||||||
#else
|
|
||||||
std::cerr << message.c_str() << std::endl;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void cmSystemTools::Message(const char* m1, const char *title)
|
||||||
|
{
|
||||||
|
#if defined(_WIN32) && !defined(__CYGWIN__)
|
||||||
|
::MessageBox(0, m1, title, MB_OK);
|
||||||
|
#endif
|
||||||
|
std::cerr << m1 << std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void cmSystemTools::CopyFileIfDifferent(const char* source,
|
void cmSystemTools::CopyFileIfDifferent(const char* source,
|
||||||
|
|
|
@ -139,6 +139,11 @@ public:
|
||||||
static void Error(const char* m, const char* m2=0,
|
static void Error(const char* m, const char* m2=0,
|
||||||
const char* m3=0, const char* m4=0);
|
const char* m3=0, const char* m4=0);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display a message.
|
||||||
|
*/
|
||||||
|
static void Message(const char* m, const char* title=0);
|
||||||
|
|
||||||
///! Return true if there was an error at any point.
|
///! Return true if there was an error at any point.
|
||||||
static bool GetErrorOccuredFlag()
|
static bool GetErrorOccuredFlag()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue