更新:1、修复全部C4819 / C4018 / C4244警告;
2、更新项目文档;
This commit is contained in:
@@ -80,6 +80,13 @@ if(MSVC)
|
||||
/FS
|
||||
$<$<CONFIG:Release>:/Zc:strictStrings>
|
||||
)
|
||||
|
||||
# 修复 C4819(源文件含当前代码页无法表示的字符)。
|
||||
# /utf-8 从 VS2015 Update 2 开始支持;本工程使用 MSVC 2013 时无该选项,
|
||||
# 通过为源码文件添加 UTF-8 BOM 解决 C4819,这里仅对支持 /utf-8 的新版 MSVC 开启。
|
||||
if(MSVC_VERSION GREATER_EQUAL 1900)
|
||||
target_compile_options(data_process_class_dll PRIVATE /utf-8)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# 输出目录:build/bin 下为 DLL/PDB,build/lib 下为导入库。
|
||||
|
||||
Reference in New Issue
Block a user