enforce UTF-8 when using MSVC

This commit is contained in:
LIU Xiao 2024-07-27 11:15:55 +08:00
parent 35ee170413
commit 256707309f

View File

@ -46,6 +46,11 @@ if (WIN32)
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
endif()
if(MSVC)
add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")
endif()
#
# option list
#