From c5d4bfe680db86be62a43537805f62a02ce80195 Mon Sep 17 00:00:00 2001 From: Mathis Logemann Date: Thu, 27 Jan 2022 18:28:44 +0100 Subject: [PATCH] [CMake] add msvc utf-8 flag --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a9be165f0..f2dc1f02d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -344,6 +344,11 @@ if(NOT WIN32) list(APPEND MAPNIK_OPTIONAL_LIBS ${CMAKE_DL_LIBS}) endif() +# force utf-8 source code processing +# see https://docs.microsoft.com/de-de/cpp/build/reference/utf-8-set-source-and-executable-character-sets-to-utf-8?view=msvc-170 +add_compile_options("$<$:/utf-8>") +add_compile_options("$<$:/utf-8>") + add_library(core INTERFACE) add_library(mapnik::core ALIAS core)