Remove compiler warnings from the CMakeLists

The existing compiler warnings expected either clang/GCC or MSVC, thus
making CMakeLists less future proof.
This commit is contained in:
2025-09-06 16:16:57 +03:00
parent 5dc36b222f
commit 7cae704504
3 changed files with 0 additions and 21 deletions

View File

@@ -16,13 +16,6 @@ foreach(TEST_FILENAME ${TEST_FILES})
target_link_libraries("${TEST_NAME}" BHLib BHUnit)
add_test(NAME "${TEST_NAME}" COMMAND "${TEST_NAME}")
# Enable all compiler warnings
if(MSVC)
target_compile_options("${TEST_NAME}" PRIVATE /W4 /WX)
else()
target_compile_options("${TEST_NAME}" PRIVATE -Wall -Wextra -Wpedantic -Werror -fstrict-aliasing)
endif()
# Enable coverage
if(ENABLE_COVERAGE)
target_compile_options("${TEST_NAME}" PRIVATE -coverage)