disable annoying clang warning

This commit is contained in:
Olaf Flebbe 2012-01-08 22:41:42 +01:00 committed by ThorstenB
parent 5eb9acd8b6
commit 1af8aacd1d

View File

@ -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}")