build: turn on warnings-as-errors in git builds with MSVC

This commit is contained in:
Marcus Holland-Moritz 2024-10-20 00:41:39 +02:00
parent 26e7abbe30
commit 887134a841

View File

@ -703,6 +703,9 @@ foreach(tgt ${LIBDWARFS_TARGETS} ${LIBDWARFS_OBJECT_TARGETS} dwarfs_test_helpers
/wd4456 # declaration hides previous local declaration
)
if(DWARFS_GIT_BUILD)
target_compile_options(${tgt} PRIVATE /WX)
endif()
endif()
endif()