Enable additional compiler warnings

This commit is contained in:
2024-06-16 12:23:21 +03:00
parent bfa33b3778
commit ecab74bb22
3 changed files with 21 additions and 3 deletions

View File

@@ -20,3 +20,10 @@ set(BHUNIT_HEADER
# Library
add_library(bhunit STATIC ${BHUNIT_SOURCE} ${BHUNIT_HEADER})
target_include_directories(bhunit PUBLIC include)
# Enable warnings and pedantics
if(MSVC)
target_compile_options(bhunit PRIVATE /W4)
else()
target_compile_options(bhunit PRIVATE -Wall -Wextra -Wpedantic)
endif()