Skip to content

Commit

Permalink
fix(msvc): 🐛 fix build failed with msvc
Browse files Browse the repository at this point in the history
add `/utf-8` options for msvc
  • Loading branch information
Timothy-Liuxf committed Aug 22, 2024
1 parent 5d0f394 commit 2012ae9
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 @@ -7,7 +7,7 @@ project(simple_logger
)
set(CMAKE_CXX_STANDARD 17)
if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX /utf-8")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic -Werror")
endif()
Expand Down

0 comments on commit 2012ae9

Please sign in to comment.