mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 22:01:13 +00:00
Have C++ warning in test break the CI
This commit is contained in:
parent
d37856b754
commit
a0cc8a2976
1 changed files with 6 additions and 0 deletions
|
@ -153,6 +153,12 @@ if(BUILD_TESTING)
|
||||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||||
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)
|
||||||
|
target_compile_options(test_${NAME} PRIVATE /W4 /WX)
|
||||||
|
else()
|
||||||
|
target_compile_options(test_${NAME} PRIVATE -Wall -Wextra -Werror)
|
||||||
|
endif()
|
||||||
|
|
||||||
endmacro(sixtyfps_test)
|
endmacro(sixtyfps_test)
|
||||||
sixtyfps_test(datastructures)
|
sixtyfps_test(datastructures)
|
||||||
sixtyfps_test(interpreter)
|
sixtyfps_test(interpreter)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue