From d0c039e9a4c1f385fdd6e7b11bb0a9c5bf78bf7c Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Tue, 12 Aug 2003 17:18:16 -0400 Subject: [PATCH] ENH: Fix hidden console for ctest --- Source/cmSystemTools.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 323127e48..69ce0afcc 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -392,7 +392,10 @@ bool cmSystemTools::RunSingleCommand( cmsysProcess* cp = cmsysProcess_New(); cmsysProcess_SetCommand(cp, &*argv.begin()); cmsysProcess_SetWorkingDirectory(cp, dir); - cmsysProcess_SetOption(cp, cmsysProcess_Option_HideWindow, 1); + if(cmSystemTools::GetRunCommandHideConsole()) + { + cmsysProcess_SetOption(cp, cmsysProcess_Option_HideWindow, 1); + } cmsysProcess_SetTimeout(cp, timeout); cmsysProcess_Execute(cp);