Skip to content

Commit

Permalink
Fix build failed for visual studio in multi-byte windows environments (
Browse files Browse the repository at this point in the history
…#7235)

* Set source and executable charset to utf-8 when Visual Studio

* Remove unnecessary version check for visual studio
  • Loading branch information
s-hashimoto00 committed Oct 14, 2021
1 parent 255dec1 commit 25180ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/CMakeLists.txt
Expand Up @@ -209,6 +209,8 @@ if (MSVC)
# Build with multiple processes
add_definitions(/MP)
endif()
# Set source file and execution character sets to UTF-8
add_definitions(/utf-8)
# MSVC warning suppressions
add_definitions(
/wd4018 # 'expression' : signed/unsigned mismatch
Expand Down

0 comments on commit 25180ac

Please sign in to comment.