zlm 编译默认输出utf-8字符集,和开启/Zc:__cplusplus选项(默认c++14)

This commit is contained in:
admin 2024-05-16 09:12:10 +08:00
parent ff3a8190e6
commit 502e611d14
1 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# MIT License
# MIT License
#
# Copyright (c) 2016-2022 The ZLMediaKit project authors. All Rights Reserved.
#
@ -202,6 +202,8 @@ if(UNIX)
endif()
elseif(WIN32)
if (MSVC)
add_compile_options("/utf-8")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zc:__cplusplus")
set(COMPILE_OPTIONS_DEFAULT
# TODO: /wd4819
"/wd4566;/wd4819;/utf-8"