Skip to content

Commit

Permalink
Add /utf-8 flag on MSVC not on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
DolphyWind committed Jan 29, 2024
1 parent e72fe20 commit 4cba9bb
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 @@ -16,7 +16,7 @@ set(BOOST_REGEX_STANDALONE ON)
add_subdirectory(include/thirdparty/regex)
target_link_libraries(${TARGET_BINARY_NAME} PRIVATE Boost::regex)

if(WIN32)
if(MSVC)
target_compile_options(${TARGET_BINARY_NAME} PRIVATE /utf-8)
endif()

Expand Down

0 comments on commit 4cba9bb

Please sign in to comment.