diff --git a/CMakeLists.txt b/CMakeLists.txt index 18ddc074..94cc6561 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()