Skip to content

Commit f54800f

Browse files
committed
Add /utf-8 for MSVC
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]>
1 parent 9ae9750 commit f54800f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ if (WIN32)
6868
if (MSVC)
6969
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
7070

71-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP /openmp")
71+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP /openmp /utf-8")
7272
endif()
7373

7474
set(LIB_Ws2_32 Ws2_32)

0 commit comments

Comments
 (0)