From 00487e325783fa57498d7887739531c87415c3b4 Mon Sep 17 00:00:00 2001 From: Konstantin P Date: Tue, 25 Apr 2023 15:42:43 +0300 Subject: [PATCH] vcmi: disable -Wvirtual-move-assign from tests --- test/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 2549ee6d9..fb6aaeb39 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -170,6 +170,10 @@ check_cxx_compiler_flag(-Wdeprecated-copy-with-user-provided-copy COPY) if(COPY) add_compile_options(-Wno-deprecated-copy-with-user-provided-copy) #Used in googletest endif() +check_cxx_compiler_flag(-Wvirtual-move-assign MOVE_ASSIGN) +if(MOVE_ASSIGN) + add_compile_options(-Wno-virtual-move-assign) #GCC is too strict here +endif() add_subdirectory_with_folder("3rdparty" googletest EXCLUDE_FROM_ALL) add_executable(vcmitest ${test_SRCS} ${test_HEADERS} ${mock_HEADERS})