From 58a45d91f4f4a62e5b0e5562fb0962409e4d27e4 Mon Sep 17 00:00:00 2001 From: phantom10111 Date: Tue, 9 Apr 2024 15:03:50 +0200 Subject: [PATCH] Windows: Compile with /utf-8 flag Add /utf-8 flag to compilation on MSVC. This flag makes sure that source files and static strings included in the application are UTF-8 strings. --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index faf76172d3..d20f584be7 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -150,7 +150,7 @@ endif() if(MSVC) # TODO: Find a way to do this cleanly for non MSVC users. - set(SM_COMPILE_FLAGS "${SM_COMPILE_FLAGS} /MP2") + set(SM_COMPILE_FLAGS "${SM_COMPILE_FLAGS} /MP2 /utf-8") endif() set_target_properties("${SM_EXE_NAME}"