Skip to content

Commit

Permalink
build: turn on warnings-as-errors in git builds with MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
mhx committed Oct 19, 2024
1 parent 9f2fa19 commit ed4ba19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit ed4ba19

Please sign in to comment.