From 54d026e64f2606896338cf7d7f5b9e824d9ba591 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 25 Mar 2012 18:46:50 +0100 Subject: [PATCH] Suppress a warning when using Clang. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) 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)