Skip to content

Commit 7838990

Browse files
committed
enforce UTF-8 when using MSVC
1 parent 11399d7 commit 7838990

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ if (WIN32)
4646
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
4747
endif()
4848

49+
if(MSVC)
50+
add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")
51+
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")
52+
endif()
53+
4954
#
5055
# option list
5156
#

0 commit comments

Comments
 (0)