Permalink
Browse files

Disabled warnings to address issues in FBX headers that generate lots…

… of warnings that we can't fix.
  • Loading branch information...
1 parent ba56ab5 commit 96c6788e100515420bf779e4c0bdeca14800ee7c @osg-training-guest osg-training-guest committed Apr 9, 2014
Showing with 8 additions and 2 deletions.
  1. +8 −2 src/osgPlugins/fbx/CMakeLists.txt
View
10 src/osgPlugins/fbx/CMakeLists.txt
@@ -12,14 +12,20 @@ SET(TARGET_SRC
fbxMaterialToOsgStateSet.cpp
)
-SET(TARGET_H
+SET(TARGET_H
fbxMaterialToOsgStateSet.h
fbxReader.h
ReaderWriterFBX.h
WriterCompareTriangle.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)

0 comments on commit 96c6788

Please sign in to comment.