build: 修复Windows运行

This commit is contained in:
2026-07-14 21:55:56 +08:00
parent 3e46e1e4f3
commit 015cd09e6b

View File

@@ -39,7 +39,7 @@ add_definitions(-DUNICODE -D_UNICODE)
# of modifying this function.
function(APPLY_STANDARD_SETTINGS TARGET)
target_compile_features(${TARGET} PUBLIC cxx_std_17)
target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100")
target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100" /utf-8)
target_compile_options(${TARGET} PRIVATE /EHsc)
target_compile_definitions(${TARGET} PRIVATE "_HAS_EXCEPTIONS=0")
target_compile_definitions(${TARGET} PRIVATE "$<$<CONFIG:Debug>:_DEBUG>")