tests: ignore deprecated declarations warnings in GCC.

Adding the -Wno-deprecated-declarations flag for GCC compilers removes
the many deprecated-declarations warnings emitted by GCC when compiling
the tests.
This commit is contained in:
Knut Andre Tidemann 2018-09-10 15:12:42 +02:00
parent ebb3c03293
commit 9676e86433

View File

@ -109,7 +109,7 @@ foreach(file ${files})
target_link_libraries(${testcase} ${NLOHMANN_JSON_TARGET_NAME})
if(NOT MSVC)
set_target_properties(${testcase} PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated -Wno-float-equal")
set_target_properties(${testcase} PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated -Wno-deprecated-declarations -Wno-float-equal")
endif()
add_test(NAME "${testcase}_default"