Просмотр исходного кода

UI/updater: CMake: Add /utf-8 to MSVC command line

Fixes compiler interpreting UTF-8 as individual bytes when building the
wide string and showing the wrong characters.

Fixes #7304.
Richard Stanway 3 лет назад
Родитель
Сommit
47e441b2e5
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      UI/win-update/updater/CMakeLists.txt

+ 1 - 0
UI/win-update/updater/CMakeLists.txt

@@ -38,6 +38,7 @@ target_compile_definitions(updater PRIVATE NOMINMAX "PSAPI_VERSION=2")
 
 if(MSVC)
   target_compile_options(updater PRIVATE $<IF:$<CONFIG:DEBUG>,/MTd,/MT>)
+  target_compile_options(updater PRIVATE "/utf-8")
 endif()
 
 target_link_libraries(updater PRIVATE OBS::blake2 OBS::lzma ${STATIC_ZLIB_PATH}