Merge pull request #5365 from Tachi107/msvc-utf-8

build(msvc): always assume source files are in UTF-8
This commit is contained in:
Gilles Peskine 2022-03-02 16:42:33 +01:00 committed by GitHub
commit 5459a15863
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -223,8 +223,8 @@ if(CMAKE_COMPILER_IS_IAR)
endif(CMAKE_COMPILER_IS_IAR)
if(CMAKE_COMPILER_IS_MSVC)
# Strictest warnings
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W3")
# Strictest warnings, UTF-8 source and execution charset
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W3 /utf-8")
endif(CMAKE_COMPILER_IS_MSVC)
if(MBEDTLS_FATAL_WARNINGS)

View file

@ -0,0 +1,2 @@
Changes
* Assume source files are in UTF-8 when using MSVC with CMake.