Disabled the -Wextra warning as resolve the warnings will create other warnings under other compilers

This commit is contained in:
Robert Osfield
2016-06-08 09:33:56 +01:00
parent ef73d2449e
commit d712784177

View File

@@ -7,8 +7,18 @@ ENDIF()
SET(LIB_NAME osgViewer)
################################################################################
## 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()
SET(HEADER_PATH ${OpenSceneGraph_SOURCE_DIR}/include/${LIB_NAME})
FILE(GLOB CONFIG_HEADER_FILES ${HEADER_PATH}/config/*)
FILE(GLOB CONFIG_SOURCE_FILES config/*.cpp)