mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 04:40:18 -05:00
e1fc4b9b17
On Windows the AUTO encoding is based on the console code page, so run the test in an isolated console window.
8 lines
224 B
CMake
8 lines
224 B
CMake
# Set the console code page.
|
|
execute_process(COMMAND cmd /c chcp ${CODEPAGE})
|
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/Encoding-common.cmake)
|
|
|
|
# Save our internal UTF-8 representation of the output.
|
|
file(WRITE "out.txt" "${out}")
|