Skip to content

Commit

Permalink
change cmake /utf-8 option add mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kinly committed Jul 23, 2024
1 parent 6796ef2 commit 50e5eef
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ else()
include(cmake/conan_build.cmake)
endif()

add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")

#############################################################
# LIBRARY

Expand Down Expand Up @@ -189,6 +186,7 @@ target_compile_definitions(${BTCPP_LIBRARY} PUBLIC BTCPP_LIBRARY_VERSION="${CMAK
target_compile_features(${BTCPP_LIBRARY} PUBLIC cxx_std_17)

if(MSVC)
target_compile_options(${BTCPP_LIBRARY} PRIVATE "/source-charset:utf-8")
else()
target_compile_options(${BTCPP_LIBRARY} PRIVATE -Wall -Wextra)
endif()
Expand Down

0 comments on commit 50e5eef

Please sign in to comment.