]> git.mxchange.org Git - simgear.git/commitdiff
disable annoying clang warning
authorOlaf Flebbe <of@oflebbe.de>
Sun, 8 Jan 2012 21:41:42 +0000 (22:41 +0100)
committerThorstenB <brehmt@gmail.com>
Fri, 10 Feb 2012 21:42:27 +0000 (22:42 +0100)
CMakeLists.txt

index 037ede6a1af72772aee088f585005a8a1a75466a..ef4c856c9af0b96fb52ba86640b29e799d2e4f5e 100644 (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}")