Use UTF-8 for MSVC source and execution charset (#6876)

This commit is contained in:
Dominic Clark
2023-09-20 00:56:55 +01:00
committed by GitHub
parent dc88040fbe
commit 94d0b9111b

View File

@@ -651,6 +651,9 @@ IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
ELSE(WIN32)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -DPIC")
ENDIF(WIN32)
elseif(MSVC)
# Use UTF-8 as the source and execution character set
add_compile_options("/utf-8")
ENDIF()
# add enabled sanitizers