More aggressive compiler warnings

This commit is contained in:
Tristan Penman 2020-07-06 19:30:55 +10:00
parent 77d2ef8299
commit 73a8e440c0

View File

@ -104,10 +104,11 @@ if(valijson_BUILD_TESTS)
# Unit tests executable
add_executable(test_suite ${TEST_SOURCES})
set_target_properties(test_suite PROPERTIES COMPILE_FLAGS " -pedantic -Werror -Wshadow -Wunused")
# Definition for using picojson
set_target_properties(test_suite PROPERTIES COMPILE_DEFINITIONS "PICOJSON_USE_INT64")
if(Boost_FOUND)
add_definitions(-DBOOST_ALL_DYN_LINK)
set(Boost_USE_STATIC_LIBS OFF)