Enable additional compiler warnings
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user