Hide clang warning about missing overrides in MOCK_METHOD() definitions
This commit is contained in:
parent
27fba3252e
commit
5f4eb2d868
3
vendor/googletest/CMakeLists.txt
vendored
3
vendor/googletest/CMakeLists.txt
vendored
@ -10,4 +10,7 @@ if (BUILD_TESTING)
|
||||
add_library(${PROJECT_NAME} dummy.cpp)
|
||||
target_link_libraries(${PROJECT_NAME} gtest gmock gmock_main)
|
||||
target_include_directories(${PROJECT_NAME} SYSTEM INTERFACE ${gtest_INCLUDE_DIRS}/include SYSTEM ${gmock_INCLUDE_DIRS}/include)
|
||||
|
||||
# Disable "missing override" warning because gmock MOCK_METHOD() don't use override :(
|
||||
target_compile_options(${PROJECT_NAME} PUBLIC "-Wno-inconsistent-missing-override")
|
||||
endif (BUILD_TESTING)
|
||||
|
Loading…
Reference in New Issue
Block a user