Merge pull request #5592 from Tachi107/2.28-msvc-utf-8

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

View file

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

View file

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