Skip to content

Commit

Permalink
Drop -Werror from test targets
Browse files Browse the repository at this point in the history
It's causing more hassle than it's worth.
  • Loading branch information
Fulgen301 committed Aug 10, 2023
1 parent 50e341e commit f667479
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ function (add_test_target TEST_NAME)
list(TRANSFORM ADD_TEST_SOURCES PREPEND "${CMAKE_SOURCE_DIR}/")

add_executable("${TARGET}" "${ADD_TEST_SOURCES}")

if (MSVC)
target_compile_options("${TARGET}" PRIVATE /W4 /WX)
else ()
target_compile_options("${TARGET}" PRIVATE -Wall -Wextra -Werror)
endif ()

target_include_directories("${TARGET}" PRIVATE "${CMAKE_SOURCE_DIR}/src")
target_link_libraries("${TARGET}" PRIVATE Catch2::Catch2WithMain "${ADD_TEST_LIBRARIES}")

Expand Down

0 comments on commit f667479

Please sign in to comment.