summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-08-12 21:18:16 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-08-12 21:18:16 (GMT)
commitd0c039e9a4c1f385fdd6e7b11bb0a9c5bf78bf7c (patch)
treeef07bde558959d2b675ec2c2c0f19499b3231854 /Source/cmSystemTools.cxx
parentf686f1fec38d088cdb699fe0c009070e555a5c32 (diff)
downloadCMake-d0c039e9a4c1f385fdd6e7b11bb0a9c5bf78bf7c.zip
CMake-d0c039e9a4c1f385fdd6e7b11bb0a9c5bf78bf7c.tar.gz
CMake-d0c039e9a4c1f385fdd6e7b11bb0a9c5bf78bf7c.tar.bz2
ENH: Fix hidden console for ctest
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 323127e..69ce0af 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);