From: Olaf Flebbe Date: Sun, 8 Jan 2012 21:41:42 +0000 (+0100) Subject: disable annoying clang warning X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1af8aacd1ddf1d6529327288d82bfc1e70bfc846;p=simgear.git disable annoying clang warning --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 037ede6a..ef4c856c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -221,6 +221,10 @@ if(WIN32) set( RT_LIBRARY "winmm" ) endif(WIN32) +if (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang") + set (WARNING_FLAGS "-Wall -Wno-overloaded-virtual") +endif() + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WARNING_FLAGS} ${MSVC_FLAGS}") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WARNING_FLAGS} ${MSVC_FLAGS} ${BOOST_CXX_FLAGS}")