diff --git a/CMakeLists.txt b/CMakeLists.txt index 694734843..6df4e222f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -275,6 +275,10 @@ if(CMAKE_COMPILER_IS_GNUCXX) set(WARNING_FLAGS -Wall) endif(CMAKE_COMPILER_IS_GNUCXX) +if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") + set (WARNING_FLAGS "-Wall -Wno-overloaded-virtual") +endif() + if(WIN32) if(MSVC)