diff options
author | Dāvis Mosāns <davispuh@gmail.com> | 2016-10-01 00:11:35 (GMT) |
---|---|---|
committer | Dāvis Mosāns <davispuh@gmail.com> | 2016-10-26 14:02:37 (GMT) |
commit | 335a29cb07a8d014a9ed4d4dbf25e49da3a78b33 (patch) | |
tree | a49c2857563391c6bd9f1ddd4624f3c3fa85a7df /CMakeLists.txt | |
parent | fdd0ce915c0ab7e5a9f3b95612b35d845a7a5213 (diff) | |
download | CMake-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.txt | 1 |
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) |