From 3b811c7407ec7dfe693b8f2bd739c767981b4a38 Mon Sep 17 00:00:00 2001 From: zhenyan121 <3367366583@qq.com> Date: Sat, 11 Apr 2026 17:08:47 +0800 Subject: [PATCH] fix: mingw build failed --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index db212c3..1a13ffe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,7 +69,7 @@ target_include_directories(${PROJECT_NAME} PRIVATE ) # ========== 启用 AddressSanitizer (仅 Debug 模式) ========== -if(CMAKE_BUILD_TYPE STREQUAL "Debug") +if(CMAKE_BUILD_TYPE STREQUAL "Debug" AND NOT MINGW) message(STATUS "Building with AddressSanitizer enabled for target: ${PROJECT_NAME}") target_compile_options(${PROJECT_NAME} PRIVATE