Skip to content

Commit

Permalink
Fixed MSVC source encoding to UTF-8
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Nov 9, 2023
1 parent ee52e41 commit ab7e832
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17)

if(MSVC)
target_compile_options(${PROJECT_NAME} PRIVATE /W4)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /source-charset:UTF-8")
else()
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -lstdc++fs
# additional warnings
Expand Down

0 comments on commit ab7e832

Please sign in to comment.