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:
parent
ebb3c03293
commit
9676e86433
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user