From 9e27e52d4b0fee729f9a3bef710efed290ef9900 Mon Sep 17 00:00:00 2001 From: KWSys Upstream Date: Fri, 15 Nov 2019 08:05:29 -0500 Subject: KWSys 2019-11-15 (329d8c7c) Code extracted from: https://gitlab.kitware.com/utils/kwsys.git at commit 329d8c7c907353999827c02a7af341e57aff90aa (master). Upstream Shortlog ----------------- Brad King (1): 2581cfd1 SystemTools: Update EnableMSVCDebugHook to simulate "Retry" --- SystemTools.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SystemTools.cxx b/SystemTools.cxx index dcf05da..39873e6 100644 --- a/SystemTools.cxx +++ b/SystemTools.cxx @@ -4666,8 +4666,12 @@ void SystemTools::ClassFinalize() # include 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 -- cgit v0.12