msvc: 添加 /utf-8 编译参数以适用于扩展的乱码原因

This commit is contained in:
zinface 2024-09-24 12:38:25 +08:00
parent 1807b73840
commit a4c4c2bb38
1 changed files with 5 additions and 0 deletions

View File

@ -27,6 +27,11 @@ spark_include(SparkFramework.cmake)
# Windows UNICODE TCHAR
if(WIN32)
add_compile_definitions(_UNICODE= UNICODE=)
# TODO move to cmake/platforms/windows-msvc.cmake
if(MSVC)
# MSVC utf-8
add_compile_options(/utf-8)
endif(MSVC)
endif()
# 2.0.0 , 2.11
add_compile_definitions(TEST_PRE)