summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-01-26 19:41:29 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-01-26 19:41:29 (GMT)
commit0217af3b5829b5d2e190d84109af2f0ab984c9ff (patch)
treee0a34f8882aecb0bb6d9b7e9dd1140f487741a9d /Source/cmSystemTools.cxx
parent1d958cad60f599a72281cec1f9abb349c5ee573b (diff)
downloadCMake-0217af3b5829b5d2e190d84109af2f0ab984c9ff.zip
CMake-0217af3b5829b5d2e190d84109af2f0ab984c9ff.tar.gz
CMake-0217af3b5829b5d2e190d84109af2f0ab984c9ff.tar.bz2
ENH: Improve calling of RunSingle command and fix compile error
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 032a95d..28b378b 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -437,6 +437,8 @@ bool cmSystemTools::RunSingleCommand(
std::vector<char> tempOutput;
char* data;
int length;
+ if ( output || verbose )
+ {
while(cmsysProcess_WaitForData(cp, &data, &length, 0))
{
if ( output )
@@ -448,6 +450,7 @@ bool cmSystemTools::RunSingleCommand(
cmSystemTools::Stdout(data, length);
}
}
+ }
cmsysProcess_WaitForExit(cp, 0);
if ( output )