summaryrefslogtreecommitdiffstats
path: root/Source/cmakemain.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-05-03 15:48:33 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-05-03 15:48:46 (GMT)
commit186ca170da51d64a50bb15bfd067ca9b4c987327 (patch)
tree7e24dcdf673e68d182f4505d55fa614b9da2f7a2 /Source/cmakemain.cxx
parent6f242acfcb72881d184f5b2468fd4ddcadce01d8 (diff)
parentc85524a94ace9ee400229fede179a605b1c144e3 (diff)
downloadCMake-186ca170da51d64a50bb15bfd067ca9b4c987327.zip
CMake-186ca170da51d64a50bb15bfd067ca9b4c987327.tar.gz
CMake-186ca170da51d64a50bb15bfd067ca9b4c987327.tar.bz2
Merge topic 'std-pipes-always'
c85524a94a Ensure stdin, stdout, and stderr pipes are always open Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Kyle Edwards <kyle.edwards@kitware.com> Merge-request: !3282
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r--Source/cmakemain.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index 49d160c..e639c66 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -184,6 +184,7 @@ static void cmakemainProgressCallback(const std::string& m, float prog,
int main(int ac, char const* const* av)
{
+ cmSystemTools::EnsureStdPipes();
#if defined(_WIN32) && defined(CMAKE_BUILD_WITH_CMAKE)
// Replace streambuf so we can output Unicode to console
cmsys::ConsoleBuf::Manager consoleOut(std::cout);