Skip to content

Commit

Permalink
Use /utf-8 compiler option for MSVC (needed for newer fmt lib versions)
Browse files Browse the repository at this point in the history
  • Loading branch information
joto committed Sep 16, 2024
1 parent c9c1edd commit fb8640c
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 @@ -46,7 +46,7 @@ set(CMAKE_CXX_EXTENSIONS OFF)

if (MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS -DNOMINMAX)
add_compile_options(-wd4996)
add_compile_options(-wd4996 -utf-8)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /ignore:4099")
else()
add_compile_options(-Wall)
Expand Down

0 comments on commit fb8640c

Please sign in to comment.