🐛 really enable utf8 on MSVC

This commit is contained in:
ValKmjolnir 2024-06-06 00:00:48 +08:00
parent ce9f28274e
commit f62d747b23
1 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,10 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_CXX_FLAGS_RELEASE_INIT "-Wshadow -Wall")
add_compile_options(-fPIC)
# MSVC needs this command option to really enable utf-8 output
if(MSVC)
add_compile_options(/utf-8)
endif()
# generate release executables
set(CMAKE_BUILD_TYPE "Release")