build: Suppress MSVC linker warning LNK4099 (#8049)

This commit is contained in:
Jingchen
2026-08-20 13:19:07 +00:00
committed by GitHub
parent 3b1c9e4320
commit 959a186a0f

View File

@@ -120,7 +120,10 @@ if(MSVC)
_SILENCE_ALL_CXX17_DEPRECATION_WARNINGS
$<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CONFIG:Debug>>:_CRTDBG_MAP_ALLOC>
)
target_link_libraries(common INTERFACE -errorreport:none -machine:X64)
target_link_libraries(
common
INTERFACE -errorreport:none -machine:X64 -ignore:4099
)
else()
target_compile_options(
common