Skip to content

Commit

Permalink
Add /utf-8 for MSVC
Browse files Browse the repository at this point in the history
This fixes 208 compiler warnings of this form:

C4566: character represented by universal-character-name [...]
       cannot be represented in the current code page (1252)

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed May 3, 2018
1 parent 9ae9750 commit f54800f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ if (WIN32)
if (MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP /openmp")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP /openmp /utf-8")
endif()

set(LIB_Ws2_32 Ws2_32)
Expand Down

0 comments on commit f54800f

Please sign in to comment.