Use /utf-8 for MSVC

This commit is contained in:
Freddie Wang 2022-02-15 22:01:02 +08:00 committed by GitHub
parent 218f4a4768
commit 3d450e22ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2769,6 +2769,7 @@ foreach(target ${TARGETS})
target_compile_options(${target} PRIVATE /EHsc) # Only catch C++ exceptions with catch.
target_compile_options(${target} PRIVATE /GS) # Protect the stack pointer.
target_compile_options(${target} PRIVATE /wd4996) # Use of non-_s functions.
target_compile_options(${target} PRIVATE /utf-8) # Use UTF-8 for source files.
endif()
if(OUR_FLAGS_LINK)
target_link_libraries(${target} ${OUR_FLAGS_LINK})