[IE][TESTS][CMAKE] Add -Wno-deprecated-copy compile flag for GTest (#2514)

It fixes build on Ubuntu 20.04 with gcc 9.3.0.
This commit is contained in:
Vladislav Vinogradov 2020-10-05 12:08:57 +03:00 committed by GitHub
parent 7f64984ed5
commit 605cf75901
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,9 @@ set(gtest_force_shared_crt ON CACHE BOOL "disable static CRT for google test")
function(add_gtest_libraries)
if (UNIX)
ie_add_compiler_flags(-Wno-undef)
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
ie_add_compiler_flags(-Wno-deprecated-copy)
endif()
endif ()
add_subdirectory(gtest)