Skip to content

Commit 5a1a840

Browse files
committed
Use utf-8
1 parent e9f32c8 commit 5a1a840

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ PROJECT(DM)
1616

1717
message(STATUS "CMAKE_SYSTEM_PROCESSOR=${CMAKE_SYSTEM_PROCESSOR}")
1818

19+
add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")
20+
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")
21+
1922
# 支持简版if else
2023
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
2124

0 commit comments

Comments
 (0)