From 50e5eef44de25437f4093c9710a59dff3718a598 Mon Sep 17 00:00:00 2001 From: "kinly.lei" Date: Tue, 23 Jul 2024 10:14:56 +0800 Subject: [PATCH] change cmake /utf-8 option add mode --- CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fa551b103..16993735a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,9 +74,6 @@ else() include(cmake/conan_build.cmake) endif() -add_compile_options("$<$:/utf-8>") -add_compile_options("$<$:/utf-8>") - ############################################################# # LIBRARY @@ -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()