Suppress gcc warnings emitted by external headers

This commit is contained in:
Robert Osfield 2009-02-05 14:35:46 +00:00
parent 42cc008c06
commit 2864a75ad2
2 changed files with 11 additions and 0 deletions

View File

@ -59,6 +59,12 @@ ELSE(WIN32 OR APPLE)
ENDIF(WIN32 OR APPLE)
IF(CMAKE_COMPILER_IS_GNUCXX)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wstrict-aliasing=0")
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
SET(TARGET_ADDED_LIBRARIES osgWidget osgViewer)
#### end var setup ###

View File

@ -7,5 +7,10 @@ SET(TARGET_SRC
SET(TARGET_LIBRARIES_VARS XINE_LIBRARY )
IF(CMAKE_COMPILER_IS_GNUCXX)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-deprecated-declarations")
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
#### end var setup ###
SETUP_PLUGIN(xine)