[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:
parent
7f64984ed5
commit
605cf75901
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user