From 220c1d03ec8d506dbbd9ee392bd6f42abe76a551 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Thu, 20 Jul 2023 22:42:27 +0800 Subject: [PATCH] ... --- CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d2cee2ab..185b52de 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,9 +18,7 @@ if(NOT ${PREBUILD_RESULT} EQUAL 0) endif() if(MSVC) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc /utf-8 /O2") -else() - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions -O2") + add_compile_options("/utf-8") endif() include_directories(${CMAKE_CURRENT_LIST_DIR}/include)