diff options
author | Brad King <brad.king@kitware.com> | 2011-07-28 14:28:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-07-28 14:28:52 (GMT) |
commit | 4096066723ec7dd6f450e1c8da13616c0ca2f124 (patch) | |
tree | 39f3e9310dba2bd620d81ae8755ad29b117eec93 | |
parent | acd2f84cc0bba33e7f781420189d511586a310b1 (diff) | |
download | CMake-4096066723ec7dd6f450e1c8da13616c0ca2f124.zip CMake-4096066723ec7dd6f450e1c8da13616c0ca2f124.tar.gz CMake-4096066723ec7dd6f450e1c8da13616c0ca2f124.tar.bz2 |
RunSingleCommand: Fix indentation
-rw-r--r-- | Source/cmSystemTools.cxx | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 5fe47d7..526ae3d 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -607,30 +607,30 @@ bool cmSystemTools::RunSingleCommand(std::vector<cmStdString>const& command, int length; if ( output || verbose ) { - while(cmsysProcess_WaitForData(cp, &data, &length, 0)) - { - if(output || verbose) + while(cmsysProcess_WaitForData(cp, &data, &length, 0)) { - // Translate NULL characters in the output into valid text. - // Visual Studio 7 puts these characters in the output of its - // build process. - for(int i=0; i < length; ++i) + if(output || verbose) { - if(data[i] == '\0') + // Translate NULL characters in the output into valid text. + // Visual Studio 7 puts these characters in the output of its + // build process. + for(int i=0; i < length; ++i) { - data[i] = ' '; + if(data[i] == '\0') + { + data[i] = ' '; + } } } + if ( output ) + { + tempOutput.insert(tempOutput.end(), data, data+length); + } + if(verbose) + { + cmSystemTools::Stdout(data, length); + } } - if ( output ) - { - tempOutput.insert(tempOutput.end(), data, data+length); - } - if(verbose) - { - cmSystemTools::Stdout(data, length); - } - } } cmsysProcess_WaitForExit(cp, 0); |