Skip to content

Commit

Permalink
Removed assimp warnings (#1191)
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
ahcorde authored Apr 25, 2024
1 parent f7c2405 commit e8dd485
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rviz_assimp_vendor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ else()
set(ASSIMP_CMAKE_FLAGS "-DCMAKE_INSTALL_LIBDIR=lib")

set(ASSIMP_CXX_FLAGS "-std=c++14 ${CMAKE_CXX_FLAGS}")
# assimp version 5.3.1 still uses K&R style function prototypes,
# which are deprecated as of gcc 13.2 (in Ubuntu 24.04).
# Suppress the warning here for now.
set(ASSIMP_C_FLAGS "-Wno-deprecated-non-prototype ${CMAKE_C_FLAGS}")
endif()

ament_vendor(assimp_vendor
Expand All @@ -42,6 +46,7 @@ ament_vendor(assimp_vendor
-DASSIMP_WARNINGS_AS_ERRORS:BOOL=OFF
"${ASSIMP_CMAKE_FLAGS}"
"-DCMAKE_CXX_FLAGS=${ASSIMP_CXX_FLAGS}"
"-DCMAKE_C_FLAGS=${ASSIMP_C_FLAGS}"
)

if(BUILD_TESTING)
Expand Down

0 comments on commit e8dd485

Please sign in to comment.