From db6df6fefd5157648265afb8b112cdd0181829c0 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 9 Apr 2014 17:20:26 +0000 Subject: [PATCH] Disabled warnings to address issues in FBX headers that generate lots of warnings that we can't fix. --- src/osgPlugins/fbx/CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/osgPlugins/fbx/CMakeLists.txt b/src/osgPlugins/fbx/CMakeLists.txt index a2d4b2ad7..130e85a2d 100644 --- a/src/osgPlugins/fbx/CMakeLists.txt +++ b/src/osgPlugins/fbx/CMakeLists.txt @@ -12,7 +12,7 @@ SET(TARGET_SRC fbxMaterialToOsgStateSet.cpp ) -SET(TARGET_H +SET(TARGET_H fbxMaterialToOsgStateSet.h fbxReader.h ReaderWriterFBX.h @@ -20,6 +20,12 @@ SET(TARGET_H WriterNodeVisitor.h ) +IF(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang") + REMOVE_CXX_FLAG(-pedantic) + REMOVE_CXX_FLAG(-Wall) + REMOVE_CXX_FLAG(-Wunused) +ENDIF() + IF(WIN32) SET(TARGET_EXTERNAL_LIBRARIES wininet) ENDIF(WIN32) @@ -31,7 +37,7 @@ IF(APPLE) ENDIF(APPLE) SET(TARGET_LIBRARIES_VARS FBX_LIBRARY) -SET(TARGET_ADDED_LIBRARIES osgAnimation) +SET(TARGET_ADDED_LIBRARIES osgAnimation) #### end var setup ### SETUP_PLUGIN(fbx)