diff --git a/CMakeLists.txt b/CMakeLists.txt index c232b59e..9531ea9c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -333,6 +333,11 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang") if(HAS_NOWARN_UNUSED_TYPEDEFS) set(WARNING_FLAGS_CXX " ${WARNING_FLAGS_CXX} -Wno-unused-local-typedefs") endif() + + check_cxx_compiler_flag(-Wno-inconsistent-missing-override HAS_NOWARN_MISSING_OVERRIDE) + if(HAS_NOWARN_MISSING_OVERRIDE) + set(WARNING_FLAGS_CXX " ${WARNING_FLAGS_CXX} -Wno-inconsistent-missing-override") + endif() endif() if(WIN32)