From 33649720270fde355a5cc1e1957e1304717870cf Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Tue, 27 Jun 2023 11:12:36 +0200 Subject: [PATCH] Add /utf-8 compile flag for MSVC --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c7dfcd3..f6182629 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -99,7 +99,7 @@ elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") endif() if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - add_compile_options(/wd4267 /wd4244 /wd5219) + add_compile_options(/utf-8 /wd4267 /wd4244 /wd5219) endif() if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")