summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmSystemTools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 1971610..03364bd 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -615,7 +615,7 @@ bool cmSystemTools::RunSingleCommand(std::vector<cmStdString>const& command,
int pipe;
if ( output || outputflag != OUTPUT_NONE )
{
- while((pipe = cmsysProcess_WaitForData(cp, &data, &length, 0)))
+ while((pipe = cmsysProcess_WaitForData(cp, &data, &length, 0)) > 0)
{
if(output || outputflag != OUTPUT_NONE)
{