summaryrefslogtreecommitdiffstats
path: root/Source/cmWin32ProcessExecution.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-11-04 21:59:18 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-11-04 21:59:18 (GMT)
commit47769671feb31221d2a513f6483e60caf8c8a899 (patch)
tree69ce25542a7603cf661c9398028bb866391a0aaf /Source/cmWin32ProcessExecution.cxx
parentf0facf6584518c58e7eff25b10bc03046484f71a (diff)
downloadCMake-47769671feb31221d2a513f6483e60caf8c8a899.zip
CMake-47769671feb31221d2a513f6483e60caf8c8a899.tar.gz
CMake-47769671feb31221d2a513f6483e60caf8c8a899.tar.bz2
Fix windows process execution so that it pops up the windows
Diffstat (limited to 'Source/cmWin32ProcessExecution.cxx')
-rw-r--r--Source/cmWin32ProcessExecution.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/cmWin32ProcessExecution.cxx b/Source/cmWin32ProcessExecution.cxx
index dd2c5c5..e56f0f3 100644
--- a/Source/cmWin32ProcessExecution.cxx
+++ b/Source/cmWin32ProcessExecution.cxx
@@ -170,11 +170,12 @@ bool cmWin32ProcessExecution::BorlandRunCommand(
si.dwFlags = STARTF_USESTDHANDLES|STARTF_USESHOWWINDOW;
si.hStdOutput = newstdout;
si.hStdError = newstdout;
- si.wShowWindow = SW_HIDE;
+ si.wShowWindow = SW_SHOWDEFAULT; // SW_HIDE;
//set the new handles for the child process si.hStdInput = newstdin;
char* commandAndArgs = strcpy(new char[strlen(command)+1], command);
- if (!CreateProcess(NULL,commandAndArgs,NULL,NULL,TRUE,CREATE_NEW_CONSOLE,
+ if (!CreateProcess(NULL,commandAndArgs,NULL,NULL,TRUE,
+ 0, // CREATE_NEW_CONSOLE,
NULL,dir,&si,&pi))
{
std::cerr << "CreateProcess failed " << commandAndArgs << std::endl;
@@ -403,7 +404,7 @@ static BOOL RealPopenCreateProcess(const char *cmdstring,
siStartInfo.hStdInput = hStdin;
siStartInfo.hStdOutput = hStdout;
siStartInfo.hStdError = hStderr;
- siStartInfo.wShowWindow = SW_HIDE;
+ siStartInfo.wShowWindow = SW_SHOWDEFAULT; // SW_HIDE;
//std::cout << "Create process: " << s2 << std::endl;
if (CreateProcess(NULL,
@@ -411,7 +412,7 @@ static BOOL RealPopenCreateProcess(const char *cmdstring,
NULL,
NULL,
TRUE,
- CREATE_NEW_CONSOLE,
+ 0, //CREATE_NEW_CONSOLE,
NULL,
path,
&siStartInfo,