diff options
author | Brad King <brad.king@kitware.com> | 2003-06-10 20:15:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-06-10 20:15:16 (GMT) |
commit | 68a9683d0d8e646684a867af12e56db888ed3f18 (patch) | |
tree | 44f7d15f1efe3f9c35ae2a3c937b32915f110e69 /Source/kwsys/ProcessWin32.c | |
parent | 6e23bcb50fcb786b2a2be57839c7cbf81f6c13ec (diff) | |
download | CMake-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.c | 3 |
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); |