summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/ProcessWin32.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-06-10 20:15:16 (GMT)
committerBrad King <brad.king@kitware.com>2003-06-10 20:15:16 (GMT)
commit68a9683d0d8e646684a867af12e56db888ed3f18 (patch)
tree44f7d15f1efe3f9c35ae2a3c937b32915f110e69 /Source/kwsys/ProcessWin32.c
parent6e23bcb50fcb786b2a2be57839c7cbf81f6c13ec (diff)
downloadCMake-68a9683d0d8e646684a867af12e56db888ed3f18.zip
CMake-68a9683d0d8e646684a867af12e56db888ed3f18.tar.gz
CMake-68a9683d0d8e646684a867af12e56db888ed3f18.tar.bz2
BUG: Don't show a console application's window.
Diffstat (limited to 'Source/kwsys/ProcessWin32.c')
-rw-r--r--Source/kwsys/ProcessWin32.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/kwsys/ProcessWin32.c b/Source/kwsys/ProcessWin32.c
index 5a168da..3b7c377 100644
--- a/Source/kwsys/ProcessWin32.c
+++ b/Source/kwsys/ProcessWin32.c
@@ -673,7 +673,8 @@ void kwsysProcess_Execute(kwsysProcess* cp)
cp->TimeoutTime = kwsysProcessTimeFromDouble(-1);
/* CREATE THE CHILD PROCESS */
- if(!CreateProcess(0, cp->RealCommand, 0, 0, TRUE, CREATE_NEW_CONSOLE, 0,
+ if(!CreateProcess(0, cp->RealCommand, 0, 0, TRUE,
+ cp->Win9x? CREATE_NEW_CONSOLE:DETACHED_PROCESS, 0,
0, &si, &cp->ProcessInformation))
{
kwsysProcessCleanup(cp, 1);