summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorDāvis Mosāns <davispuh@gmail.com>2016-10-01 00:11:35 (GMT)
committerDāvis Mosāns <davispuh@gmail.com>2016-10-26 14:02:37 (GMT)
commit335a29cb07a8d014a9ed4d4dbf25e49da3a78b33 (patch)
treea49c2857563391c6bd9f1ddd4624f3c3fa85a7df /CMakeLists.txt
parentfdd0ce915c0ab7e5a9f3b95612b35d845a7a5213 (diff)
downloadCMake-335a29cb07a8d014a9ed4d4dbf25e49da3a78b33.zip
CMake-335a29cb07a8d014a9ed4d4dbf25e49da3a78b33.tar.gz
CMake-335a29cb07a8d014a9ed4d4dbf25e49da3a78b33.tar.bz2
Enable Unicode output to Windows consoles
Use KWSys ConsoleBuf to replace the `streambuf` on `std::cout` and `std::cerr` so that process output can be encoded correctly for display in a Windows console.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b8a635f..1bc4b4e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -260,6 +260,7 @@ macro (CMAKE_BUILD_UTILITIES)
set(KWSYS_USE_MD5 1)
set(KWSYS_USE_Process 1)
set(KWSYS_USE_CommandLineArguments 1)
+ set(KWSYS_USE_ConsoleBuf 1)
set(KWSYS_HEADER_ROOT ${CMake_BINARY_DIR}/Source)
set(KWSYS_INSTALL_DOC_DIR "${CMAKE_DOC_DIR}")
add_subdirectory(Source/kwsys)