From 4bba26280f87f10fdbf7c647d74afb21a7128d19 Mon Sep 17 00:00:00 2001 From: NyakoFox Date: Sun, 10 Mar 2024 12:55:15 -0300 Subject: [PATCH] Add /utf-8 to MVSC --- desktop_version/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/desktop_version/CMakeLists.txt b/desktop_version/CMakeLists.txt index 9e60db8b..b1639a62 100644 --- a/desktop_version/CMakeLists.txt +++ b/desktop_version/CMakeLists.txt @@ -294,6 +294,9 @@ if(MSVC) # Disable RTTI string(REPLACE "/GR" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /GR-") + + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /utf-8") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /utf-8") else() string(REGEX REPLACE "-std=[a-z0-9]+" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")