mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
On Windows the AUTO encoding is based on the console code page, so run the test in an isolated console window.
12 lines
317 B
CMake
12 lines
317 B
CMake
if(ENCODING)
|
|
set(maybe_ENCODING ENCODING ${ENCODING})
|
|
else()
|
|
set(maybe_ENCODING "")
|
|
set(ENCODING AUTO) # execute_process's default ENCODING
|
|
endif()
|
|
execute_process(
|
|
COMMAND ${TEST_ENCODING_EXE} ${ENCODING} ${CMAKE_CURRENT_LIST_DIR}/Encoding${ENCODING}-stderr.txt
|
|
OUTPUT_VARIABLE out
|
|
${maybe_ENCODING}
|
|
)
|