Skip to content

Commit 979d782

Browse files
committed
Use -Werror equivalent for Windows builds
1 parent 1dd1bc7 commit 979d782

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/torchcodec/_core/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ if(DEFINED TORCHCODEC_DISABLE_COMPILE_WARNING_AS_ERROR AND TORCHCODEC_DISABLE_CO
1212
set(TORCHCODEC_WERROR_OPTION "")
1313
else()
1414
if (WIN32)
15-
# TODO set warnings as errors on Windows as well.
16-
# set(TORCHCODEC_WERROR_OPTION "/WX")
15+
set(TORCHCODEC_WERROR_OPTION "/WX")
1716
else()
1817
set(TORCHCODEC_WERROR_OPTION "-Werror")
1918
endif()

0 commit comments

Comments
 (0)