From 66687dc8b6b7bcc84f211638e6686040b441b59c Mon Sep 17 00:00:00 2001 From: spking11 <52597061+spking11@users.noreply.github.com> Date: Mon, 23 Nov 2020 19:55:19 +0800 Subject: [PATCH] Add utf-8 support for msvc within cmake. (#280) Co-authored-by: spking11 --- src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f5c5fb6..0ca84f0 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -48,6 +48,7 @@ set(ads_HEADERS IconProvider.h DockComponentsFactory.h ) +add_compile_options("$<$:/utf-8>") if (UNIX AND NOT APPLE) set(ads_SRCS linux/FloatingWidgetTitleBar.cpp ${ads_SRCS}) set(ads_HEADERS linux/FloatingWidgetTitleBar.h ${ads_HEADERS})