Tests/RunCMake/execute_process/Encoding-windows.cmake
raw| 1 | if(CMP0176 STREQUAL "NEW") |
| 2 | cmake_policy(SET CMP0176 NEW) |
| 3 | endif() |
| 4 | |
| 5 | # Set the console code page. |
| 6 | execute_process(COMMAND cmd /c chcp ${CODEPAGE}) |
| 7 | |
| 8 | include(${CMAKE_CURRENT_LIST_DIR}/Encoding-common.cmake) |
| 9 | |
| 10 | # Save our internal UTF-8 representation of the output. |
| 11 | file(WRITE "out.txt" "${out}") |