Skip to content

Commit fede9a6

Browse files
authored
Fix UTF-8 encoding problem (#745)
1 parent 23b5d03 commit fede9a6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ option (BUILD_PERIPHERY "BUILD_PERIPHERY" OFF)
2929
include (${CMAKE_CURRENT_SOURCE_DIR}/cmake/macros.cmake)
3030
configure_msvc_runtime ()
3131

32+
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")
33+
add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")
34+
3235
if (WARNINGS_AS_ERRORS)
3336
if (MSVC)
3437
add_compile_options (/WX)

0 commit comments

Comments
 (0)