summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-01-14 19:41:09 (GMT)
committerBrad King <brad.king@kitware.com>2016-01-19 20:44:30 (GMT)
commitfb1526f57fe4720aff596b312e6a767502b86e13 (patch)
treef5313f0a5bb4f0cbd907b8cb86802c96eedb1e2e
parentc13ed964012bcdf3765ada195db66930d6a0fcf9 (diff)
downloadCMake-fb1526f57fe4720aff596b312e6a767502b86e13.zip
CMake-fb1526f57fe4720aff596b312e6a767502b86e13.tar.gz
CMake-fb1526f57fe4720aff596b312e6a767502b86e13.tar.bz2
cmake: Change `-E chdir` to pass through stdout/stderr directly
Use OUTPUT_PASSTHROUGH instead of OUTPUT_NORMAL in order to avoid buffering the output just to re-print it.
-rw-r--r--Source/cmcmd.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx
index fb7b1f5..7da81bb 100644
--- a/Source/cmcmd.cxx
+++ b/Source/cmcmd.cxx
@@ -621,7 +621,7 @@ int cmcmd::ExecuteCMakeCommand(std::vector<std::string>& args)
int retval = 0;
int timeout = 0;
if ( cmSystemTools::RunSingleCommand(command.c_str(), 0, 0, &retval,
- directory.c_str(), cmSystemTools::OUTPUT_NORMAL, timeout) )
+ directory.c_str(), cmSystemTools::OUTPUT_PASSTHROUGH, timeout) )
{
return retval;
}