Disable clang/gcc warnings for Draco
parent
d79e0c0ba9
commit
88001d1609
|
@ -584,10 +584,21 @@ IF ( ASSIMP_BUILD_DRACO )
|
||||||
hunter_add_package(draco)
|
hunter_add_package(draco)
|
||||||
find_package(draco CONFIG REQUIRED)
|
find_package(draco CONFIG REQUIRED)
|
||||||
ELSE()
|
ELSE()
|
||||||
# Draco 1.4.1 has several nasty warnings and will not build with /WX
|
# Draco 1.4.1 has many warnings and will not build with /WX or -Werror
|
||||||
|
# See https://github.com/google/draco/issues/672
|
||||||
|
# and
|
||||||
IF(MSVC)
|
IF(MSVC)
|
||||||
set(DRACO_CXX_FLAGS "/W0")
|
set(DRACO_CXX_FLAGS "/W0")
|
||||||
|
ELSE()
|
||||||
|
list(APPEND DRACO_CXX_FLAGS
|
||||||
|
"-Wno-bool-compare"
|
||||||
|
"-Wno-comment"
|
||||||
|
"-Wno-maybe-uninitialized"
|
||||||
|
"-Wno-sign-compare"
|
||||||
|
"-Wno-unused-local-typedefs"
|
||||||
|
)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
ADD_SUBDIRECTORY( "contrib/draco" )
|
ADD_SUBDIRECTORY( "contrib/draco" )
|
||||||
|
|
||||||
if(MSVC OR WIN32)
|
if(MSVC OR WIN32)
|
||||||
|
|
Loading…
Reference in New Issue