diff --git a/examples/osguserdata/CMakeLists.txt b/examples/osguserdata/CMakeLists.txt index 0cf0f1203..1e0339aae 100644 --- a/examples/osguserdata/CMakeLists.txt +++ b/examples/osguserdata/CMakeLists.txt @@ -1,4 +1,14 @@ SET(TARGET_SRC osguserdata.cpp) + +################################################################################ +## Quieten warnings that a due to optional code paths + +IF(CMAKE_COMPILER_IS_GNUCXX) + # Remove -Wextra flag as it barfs on ffmoeg headers + STRING(REGEX REPLACE "-Wextra" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") +ENDIF() + + #### end var setup ### SETUP_EXAMPLE(osguserdata)