Encoding.cmake 632 B

1234567891011121314151617
  1. if(CMAKE_HOST_WIN32 AND CODEPAGE)
  2. cmake_policy(GET CMP0176 CMP0176)
  3. # Run cmake in a new Window to isolate its console code page.
  4. execute_process(COMMAND cmd /c start /min /wait ""
  5. ${CMAKE_COMMAND} -DTEST_ENCODING_EXE=${TEST_ENCODING_EXE}
  6. -DENCODING=${ENCODING}
  7. -DCODEPAGE=${CODEPAGE}
  8. -DCMP0176=${CMP0176}
  9. -P ${CMAKE_CURRENT_LIST_DIR}/Encoding-windows.cmake)
  10. # Load our internal UTF-8 representation of the output.
  11. file(READ "out.txt" out)
  12. else()
  13. include(${CMAKE_CURRENT_LIST_DIR}/Encoding-common.cmake)
  14. endif()
  15. message("${out}")