zlm 编译默认输出utf-8字符集,和开启/Zc:__cplusplus选项(默认c++14)
This commit is contained in:
parent
ff3a8190e6
commit
502e611d14
|
|
@ -1,4 +1,4 @@
|
||||||
# MIT License
|
# MIT License
|
||||||
#
|
#
|
||||||
# Copyright (c) 2016-2022 The ZLMediaKit project authors. All Rights Reserved.
|
# Copyright (c) 2016-2022 The ZLMediaKit project authors. All Rights Reserved.
|
||||||
#
|
#
|
||||||
|
|
@ -202,7 +202,9 @@ if(UNIX)
|
||||||
endif()
|
endif()
|
||||||
elseif(WIN32)
|
elseif(WIN32)
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
set(COMPILE_OPTIONS_DEFAULT
|
add_compile_options("/utf-8")
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zc:__cplusplus")
|
||||||
|
set(COMPILE_OPTIONS_DEFAULT
|
||||||
# TODO: /wd4819 应该是不会生效
|
# TODO: /wd4819 应该是不会生效
|
||||||
"/wd4566;/wd4819;/utf-8"
|
"/wd4566;/wd4819;/utf-8"
|
||||||
# warning C4530: C++ exception handler used, but unwind semantics are not enabled.
|
# warning C4530: C++ exception handler used, but unwind semantics are not enabled.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue