From 864ec70796f214cf9c8ccd64a6a01d665bebc061 Mon Sep 17 00:00:00 2001 From: Dusk_NM02 Date: Fri, 9 Sep 2022 00:48:19 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20CMake=E4=BB=85=E5=9C=A8WIN32=E4=B8=8B?= =?UTF-8?q?=E5=AE=9A=E4=B9=89UNICODE=E7=9B=B8=E5=85=B3=E5=AE=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 68c2eca02a..72f3566c63 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,12 +19,13 @@ endif () add_compile_options("$<$:/W4;/WX>") add_compile_options("$<$>:-Wall;-Wextra;-Wpedantic>") -add_definitions( - -D_CONSOLE - -DASST_DLL_EXPORTS - -D_WINDLL - -D_UNICODE - -DUNICODE) +add_definitions(-DASST_DLL_EXPORTS) +if(WIN32) + #注意:相比VS版本缺少了 -D_CONSOLE -D_WINDLL 两项 + add_definitions( + -D_UNICODE + -DUNICODE) +endif() include_directories(include 3rdparty/include) aux_source_directory(src/MeoAssistant SRC)