summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/assimp/assimp.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/assimp/assimp.cmake')
-rw-r--r--src/3rdparty/assimp/assimp.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/3rdparty/assimp/assimp.cmake b/src/3rdparty/assimp/assimp.cmake
index 592246a6f..36678cac0 100644
--- a/src/3rdparty/assimp/assimp.cmake
+++ b/src/3rdparty/assimp/assimp.cmake
@@ -342,4 +342,14 @@ function(qt3d_extend_target_for_assimp target)
COMPILE_OPTIONS
/bigobj
)
+
+ # Silence warnings in 3rdparty code
+ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
+ set_source_files_properties(${assimpDir}/src/code/AssetLib/Collada/ColladaParser.cpp PROPERTIES COMPILE_FLAGS "-Wno-strict-aliasing")
+ set_source_files_properties(${assimpDir}/src/code/Common/ZipArchiveIOSystem.cpp PROPERTIES COMPILE_FLAGS "-Wno-cast-function-type")
+ endif()
+ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
+ set_source_files_properties(${assimpDir}/src/code/Common/Assimp.cpp PROPERTIES COMPILE_FLAGS "-Wno-ordered-compare-function-pointers")
+ endif()
+
endfunction()