mirror of
https://github.com/zhenyan121/SporeBG-Conid.git
synced 2026-04-14 00:04:09 +08:00
fix: mingw build failed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user