Set default to utf-8 for MSVC

This commit is contained in:
RipleyTom 2020-12-05 12:55:00 +01:00 committed by Ivan
parent d1e7837422
commit 7b694ebeb4
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
root = true root = true
[*.{h,cpp,hpp}] [*.{h,cpp,hpp}]
charset = utf-8-bom charset = utf-8
indent_style = tab indent_style = tab
indent_size = 4 indent_size = 4
trim_trailing_whitespace = true trim_trailing_whitespace = true

View File

@ -64,7 +64,7 @@ set(CMAKE_C_FLAGS -w)
set(LLVM_ENABLE_WARNINGS OFF CACHE BOOL "") set(LLVM_ENABLE_WARNINGS OFF CACHE BOOL "")
if(MSVC) if(MSVC)
add_compile_options(/wd4530) # C++ exception handler used, but unwind semantics are not enabled add_compile_options(/wd4530 /utf-8) # C++ exception handler used, but unwind semantics are not enabled
endif() endif()
add_subdirectory(Vulkan EXCLUDE_FROM_ALL) add_subdirectory(Vulkan EXCLUDE_FROM_ALL)

View File

@ -20,7 +20,7 @@
<ExceptionHandling>false</ExceptionHandling> <ExceptionHandling>false</ExceptionHandling>
<RuntimeTypeInfo>true</RuntimeTypeInfo> <RuntimeTypeInfo>true</RuntimeTypeInfo>
<PrecompiledHeader>NotUsing</PrecompiledHeader> <PrecompiledHeader>NotUsing</PrecompiledHeader>
<AdditionalOptions>/Zc:throwingNew /constexpr:steps16777216 %(AdditionalOptions)</AdditionalOptions> <AdditionalOptions>/utf-8 /Zc:throwingNew /constexpr:steps16777216 %(AdditionalOptions)</AdditionalOptions>
</ClCompile> </ClCompile>
<Link> <Link>
<AdditionalDependencies>xxhash.lib;ws2_32.lib;Iphlpapi.lib;Bcrypt.lib;avcodec.lib;avformat.lib;avutil.lib;swresample.lib;swscale.lib</AdditionalDependencies> <AdditionalDependencies>xxhash.lib;ws2_32.lib;Iphlpapi.lib;Bcrypt.lib;avcodec.lib;avformat.lib;avutil.lib;swresample.lib;swscale.lib</AdditionalDependencies>