mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-03 05:08:47 -06:00
Merge topic 'win-no-error-popup'
a4c19cb895Windows: Restore suppression of error report popups in CI builds0b9f1cc96bMerge branch 'upstream-KWSys' into win-no-error-popup9e27e52d4bKWSys 2019-11-15 (329d8c7c) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4052
This commit is contained in:
@@ -115,7 +115,6 @@ int main(int argc, char const* const* argv)
|
||||
argc = args.argc();
|
||||
argv = args.argv();
|
||||
|
||||
cmSystemTools::EnableMSVCDebugHook();
|
||||
cmSystemTools::InitializeLibUV();
|
||||
cmSystemTools::FindCMakeResources(argv[0]);
|
||||
cmCPackLog log;
|
||||
|
||||
@@ -814,6 +814,8 @@ void cmSystemTools::InitializeLibUV()
|
||||
# else
|
||||
_fmode = _O_TEXT;
|
||||
# endif
|
||||
// Replace libuv's report handler with our own to suppress popups.
|
||||
cmSystemTools::EnableMSVCDebugHook();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -683,7 +683,6 @@ int main(int ac, char const* const* av)
|
||||
ac = args.argc();
|
||||
av = args.argv();
|
||||
|
||||
cmSystemTools::EnableMSVCDebugHook();
|
||||
cmSystemTools::InitializeLibUV();
|
||||
cmSystemTools::FindCMakeResources(av[0]);
|
||||
if (ac > 1) {
|
||||
|
||||
@@ -164,7 +164,6 @@ int main(int argc, char const* const* argv)
|
||||
argv = encoding_args.argv();
|
||||
|
||||
cmSystemTools::DoNotInheritStdPipes();
|
||||
cmSystemTools::EnableMSVCDebugHook();
|
||||
cmSystemTools::InitializeLibUV();
|
||||
cmSystemTools::FindCMakeResources(argv[0]);
|
||||
|
||||
|
||||
@@ -4666,8 +4666,12 @@ void SystemTools::ClassFinalize()
|
||||
# include <stdlib.h>
|
||||
namespace KWSYS_NAMESPACE {
|
||||
|
||||
static int SystemToolsDebugReport(int, char* message, int*)
|
||||
static int SystemToolsDebugReport(int, char* message, int* ret)
|
||||
{
|
||||
if (ret) {
|
||||
// Pretend user clicked on Retry button in popup.
|
||||
*ret = 1;
|
||||
}
|
||||
fprintf(stderr, "%s", message);
|
||||
fflush(stderr);
|
||||
return 1; // no further reporting required
|
||||
|
||||
Reference in New Issue
Block a user