From c868a94d186c88b8c68f8292abc55575a5453f58 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Wed, 7 Apr 2021 04:25:08 +0200 Subject: [PATCH] Process source code as UTF-8 --- cmake/SfizzConfig.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/SfizzConfig.cmake b/cmake/SfizzConfig.cmake index 2f1300cf..355d6db8 100644 --- a/cmake/SfizzConfig.cmake +++ b/cmake/SfizzConfig.cmake @@ -14,6 +14,11 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON) set(CMAKE_CXX_VISIBILITY_PRESET hidden) set(CMAKE_VISIBILITY_INLINES_HIDDEN ON) +# Process sources as UTF-8 +if(MSVC) + add_compile_options("/utf-8") +endif() + # Set Windows compatibility level to 7 if(WIN32) add_compile_definitions(_WIN32_WINNT=0x601)