Have C++ warning in test break the CI

This commit is contained in:
Olivier Goffart 2021-03-30 18:06:24 +02:00
parent d37856b754
commit a0cc8a2976

View file

@ -153,6 +153,12 @@ if(BUILD_TESTING)
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
set_property(TEST test_${NAME} PROPERTY WORKING_DIRECTORY "${CMAKE_BINARY_DIR}")
endif()
if(MSVC)
target_compile_options(test_${NAME} PRIVATE /W4 /WX)
else()
target_compile_options(test_${NAME} PRIVATE -Wall -Wextra -Werror)
endif()
endmacro(sixtyfps_test)
sixtyfps_test(datastructures)
sixtyfps_test(interpreter)