Add utf-8 support for msvc within cmake. (#280)

Co-authored-by: spking11 <spking11@foxmail.com>
This commit is contained in:
spking11 2020-11-23 19:55:19 +08:00 committed by GitHub
parent 1a50ea9892
commit 66687dc8b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,6 +48,7 @@ set(ads_HEADERS
IconProvider.h
DockComponentsFactory.h
)
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")
if (UNIX AND NOT APPLE)
set(ads_SRCS linux/FloatingWidgetTitleBar.cpp ${ads_SRCS})
set(ads_HEADERS linux/FloatingWidgetTitleBar.h ${ads_HEADERS})