Skip to content

Commit

Permalink
Use utf-8
Browse files Browse the repository at this point in the history
  • Loading branch information
halx99 committed Aug 26, 2023
1 parent e9f32c8 commit 5a1a840
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ PROJECT(DM)

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

add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")

# 支持简版if else
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)

Expand Down

0 comments on commit 5a1a840

Please sign in to comment.