Don't make CI fails for warnings on windows

This commit is contained in:
Olivier Goffart 2021-03-30 19:24:34 +02:00
parent a0cc8a2976
commit 8ef0b3481c

View file

@ -154,7 +154,7 @@ if(BUILD_TESTING)
set_property(TEST test_${NAME} PROPERTY WORKING_DIRECTORY "${CMAKE_BINARY_DIR}") set_property(TEST test_${NAME} PROPERTY WORKING_DIRECTORY "${CMAKE_BINARY_DIR}")
endif() endif()
if(MSVC) if(MSVC)
target_compile_options(test_${NAME} PRIVATE /W4 /WX) target_compile_options(test_${NAME} PRIVATE /W3)
else() else()
target_compile_options(test_${NAME} PRIVATE -Wall -Wextra -Werror) target_compile_options(test_${NAME} PRIVATE -Wall -Wextra -Werror)
endif() endif()