Skip to content

Commit

Permalink
Use UTF-8 for MSVC source and execution charset (LMMS#6876)
Browse files Browse the repository at this point in the history
  • Loading branch information
DomClark authored Sep 19, 2023
1 parent dc88040 commit 94d0b91
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 @@ -651,6 +651,9 @@ IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
ELSE(WIN32)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -DPIC")
ENDIF(WIN32)
elseif(MSVC)
# Use UTF-8 as the source and execution character set
add_compile_options("/utf-8")
ENDIF()

# add enabled sanitizers
Expand Down

0 comments on commit 94d0b91

Please sign in to comment.